Skip to content

Commit 70976ce

Browse files
committed
reduced basic running time, renamed action
1 parent 86c19c9 commit 70976ce

3 files changed

Lines changed: 19 additions & 19 deletions

File tree

.github/ci/README.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1-
# CI Configuration for AdaptyRecipes
1+
# CI Configuration for SDK Validation
22

33
This folder contains the source-of-truth config for the CI workflow:
44

5-
- Workflow: `.github/workflows/ci-adaptyrecipes.yml`
5+
- Workflow: `.github/workflows/sdk-validation.yml`
66
- Config: `.github/ci/ci-run-config.json`
77
- Build/test log validator: `scripts/ci/validate_demo_build.sh`
88

99
## What Runs Automatically
1010

11-
- `pull_request` (`opened`, `reopened`, `synchronize`, `ready_for_review`): full pipeline
11+
- `pull_request` (`opened`, `reopened`, `synchronize`, `ready_for_review`): default PR pipeline
1212
- SDK build matrix (`swift build` for all library targets + iOS package build)
1313
- test app build matrix (`AdaptyRecipes-SwiftUI`)
1414
- one-Xcode macOS SDK build
15-
- one-Xcode CocoaPods lint
1615
- SDK tests matrix (`swift test`)
1716
- `workflow_dispatch`: manual run with per-step toggles and optional JSON overrides
17+
- `pull_request` note: CocoaPods lint is disabled for PR auto-runs (`lint_pods=false`)
1818

1919
Note: there is no automatic `push` trigger for this workflow.
2020

@@ -25,7 +25,7 @@ Note: there is no automatic `push` trigger for this workflow.
2525
- `build_sdk_targets` (`bool`): default enable SDK matrix build + macOS SDK build
2626
- `build_test_app` (`bool`): default enable test app matrix build
2727
- `run_tests` (`bool`): default enable `swift test` matrix
28-
- `lint_pods` (`bool`): default enable CocoaPods lint job
28+
- `lint_pods` (`bool`): default disable CocoaPods lint job (can be enabled in manual runs)
2929
- `build_errors_whitelist` (`list`): allowlist for test app build failures only
3030
- `test_errors_whitelist` (`list`): allowlist for `swift test` failures
3131
- `build_matrix` (`list`): Xcode matrix for SDK/test-app jobs
@@ -57,7 +57,7 @@ Boolean defaults are duplicated in two places by design:
5757
- Matrix jobs use `setup-xcode` for requested versions.
5858
- If matrix entry is `informational: true` and Xcode is unavailable, that entry is skipped with warning.
5959
- If matrix entry is `informational: false` and Xcode is unavailable, that entry fails.
60-
- One-Xcode jobs (`SDK macOS build`, `CocoaPods lint`) fail when configured Xcode is unavailable.
60+
- One-Xcode jobs (`SDK macOS build`, `CocoaPods lint` when enabled) fail when configured Xcode is unavailable.
6161
- Test app build does not patch placeholders with `sed`; CI writes a dedicated `AppConstants.swift` with dummy values before `xcodebuild`.
6262

6363
## Manual Run Inputs (`workflow_dispatch`)
@@ -89,7 +89,7 @@ Validation rules:
8989

9090
1. Open repository on GitHub.
9191
2. Go to `Actions`.
92-
3. Select workflow `CI AdaptyRecipes`.
92+
3. Select workflow `SDK Validation`.
9393
4. Click `Run workflow`.
9494
5. In `Use workflow from`, select the branch.
9595
6. Configure boolean toggles:
@@ -123,13 +123,13 @@ Run from repository root with authenticated CLI (`gh auth status`).
123123
- Run full workflow using defaults from config:
124124

125125
```bash
126-
gh workflow run "CI AdaptyRecipes" --ref master
126+
gh workflow run "SDK Validation" --ref master
127127
```
128128

129129
- Run only SDK builds on one Xcode:
130130

131131
```bash
132-
gh workflow run "CI AdaptyRecipes" --ref master \
132+
gh workflow run "SDK Validation" --ref master \
133133
-f build_sdk_targets=true \
134134
-f build_test_app=false \
135135
-f run_tests=false \
@@ -140,7 +140,7 @@ gh workflow run "CI AdaptyRecipes" --ref master \
140140
- Run only test app build:
141141

142142
```bash
143-
gh workflow run "CI AdaptyRecipes" --ref master \
143+
gh workflow run "SDK Validation" --ref master \
144144
-f build_sdk_targets=false \
145145
-f build_test_app=true \
146146
-f run_tests=false \
@@ -150,7 +150,7 @@ gh workflow run "CI AdaptyRecipes" --ref master \
150150
- Run only tests:
151151

152152
```bash
153-
gh workflow run "CI AdaptyRecipes" --ref master \
153+
gh workflow run "SDK Validation" --ref master \
154154
-f build_sdk_targets=false \
155155
-f build_test_app=false \
156156
-f run_tests=true \
@@ -160,7 +160,7 @@ gh workflow run "CI AdaptyRecipes" --ref master \
160160
- Run tests with whitelist override:
161161

162162
```bash
163-
gh workflow run "CI AdaptyRecipes" --ref master \
163+
gh workflow run "SDK Validation" --ref master \
164164
-f build_sdk_targets=false \
165165
-f build_test_app=false \
166166
-f run_tests=true \
@@ -171,7 +171,7 @@ gh workflow run "CI AdaptyRecipes" --ref master \
171171
- Run test app build with whitelist override:
172172

173173
```bash
174-
gh workflow run "CI AdaptyRecipes" --ref master \
174+
gh workflow run "SDK Validation" --ref master \
175175
-f build_sdk_targets=false \
176176
-f build_test_app=true \
177177
-f run_tests=false \

.github/ci/ci-run-config.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
2-
"schema_version": 2,
2+
"schema_version": 3,
33
"build_sdk_targets": true,
44
"build_test_app": true,
55
"run_tests": true,
6-
"lint_pods": true,
6+
"lint_pods": false,
77
"build_errors_whitelist": [],
88
"test_errors_whitelist": [
99
{
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: CI AdaptyRecipes
1+
name: SDK Validation
22

33
on:
44
pull_request:
@@ -28,7 +28,7 @@ on:
2828
description: Run CocoaPods pod lib lint
2929
type: boolean
3030
required: true
31-
default: true
31+
default: false
3232
build_errors_whitelist:
3333
description: 'Optional build errors whitelist override (JSON array of rules: string or {message,file?,line?})'
3434
type: string
@@ -278,7 +278,7 @@ jobs:
278278
const defaultRunTests = validateBoolean(config.run_tests, "run_tests");
279279
const defaultRunLintPods = validateBoolean(config.lint_pods, "lint_pods");
280280
281-
const workflowPath = ".github/workflows/ci-adaptyrecipes.yml";
281+
const workflowPath = ".github/workflows/sdk-validation.yml";
282282
let workflowRaw;
283283
try {
284284
workflowRaw = fs.readFileSync(workflowPath, "utf8");
@@ -323,7 +323,7 @@ jobs:
323323
runBuildSdkTargets = true;
324324
runBuildTestApp = true;
325325
runTests = true;
326-
runLintPods = true;
326+
runLintPods = false;
327327
} else if (eventName === "workflow_dispatch") {
328328
runBuildSdkTargets = parseBool(process.env.INPUT_BUILD_SDK_TARGETS, defaultRunBuildSdkTargets, "build_sdk_targets");
329329
runBuildTestApp = parseBool(process.env.INPUT_BUILD_TEST_APP, defaultRunBuildTestApp, "build_test_app");

0 commit comments

Comments
 (0)