@invarn/cibuild 2.9.4 → 2.9.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk-35SI42CD.mjs +1 -0
- package/dist/chunk-IC45KVLJ.mjs +1 -0
- package/dist/chunk-XDY4V23V.mjs +1 -0
- package/dist/cli.cjs +14 -14
- package/dist/commands.mjs +1 -0
- package/dist/lib.mjs +3934 -0
- package/package.json +6 -10
- package/dist/src/cli.d.ts +0 -3
- package/dist/src/cli.d.ts.map +0 -1
- package/dist/src/cli.js +0 -399
- package/dist/src/commands/a-credential-target-follows-the-flavor-source-set.test.d.ts +0 -38
- package/dist/src/commands/a-credential-target-follows-the-flavor-source-set.test.d.ts.map +0 -1
- package/dist/src/commands/a-credential-target-follows-the-flavor-source-set.test.js +0 -222
- package/dist/src/commands/a-credential-two-workflows-cannot-share-is-declared-per-workflow.test.d.ts +0 -41
- package/dist/src/commands/a-credential-two-workflows-cannot-share-is-declared-per-workflow.test.d.ts.map +0 -1
- package/dist/src/commands/a-credential-two-workflows-cannot-share-is-declared-per-workflow.test.js +0 -324
- package/dist/src/commands/a-properties-stand-in-declares-the-keys-the-build-reads.test.d.ts +0 -2
- package/dist/src/commands/a-properties-stand-in-declares-the-keys-the-build-reads.test.d.ts.map +0 -1
- package/dist/src/commands/a-properties-stand-in-declares-the-keys-the-build-reads.test.js +0 -382
- package/dist/src/commands/an-already-stored-value-does-not-answer-the-target-question.test.d.ts +0 -29
- package/dist/src/commands/an-already-stored-value-does-not-answer-the-target-question.test.d.ts.map +0 -1
- package/dist/src/commands/an-already-stored-value-does-not-answer-the-target-question.test.js +0 -160
- package/dist/src/commands/android-gms-guard.test.d.ts +0 -9
- package/dist/src/commands/android-gms-guard.test.d.ts.map +0 -1
- package/dist/src/commands/android-gms-guard.test.js +0 -78
- package/dist/src/commands/android-java-version.test.d.ts +0 -12
- package/dist/src/commands/android-java-version.test.d.ts.map +0 -1
- package/dist/src/commands/android-java-version.test.js +0 -209
- package/dist/src/commands/android-scanner-java.test.d.ts +0 -2
- package/dist/src/commands/android-scanner-java.test.d.ts.map +0 -1
- package/dist/src/commands/android-scanner-java.test.js +0 -130
- package/dist/src/commands/android-scanner.d.ts +0 -250
- package/dist/src/commands/android-scanner.d.ts.map +0 -1
- package/dist/src/commands/android-scanner.js +0 -1639
- package/dist/src/commands/build.d.ts +0 -215
- package/dist/src/commands/build.d.ts.map +0 -1
- package/dist/src/commands/build.js +0 -1433
- package/dist/src/commands/build.test.d.ts +0 -13
- package/dist/src/commands/build.test.d.ts.map +0 -1
- package/dist/src/commands/build.test.js +0 -121
- package/dist/src/commands/detect-platform.d.ts +0 -13
- package/dist/src/commands/detect-platform.d.ts.map +0 -1
- package/dist/src/commands/detect-platform.js +0 -51
- package/dist/src/commands/detect-project.d.ts +0 -7
- package/dist/src/commands/detect-project.d.ts.map +0 -1
- package/dist/src/commands/detect-project.js +0 -12
- package/dist/src/commands/each-flavor-is-asked-for-its-own-properties-file.test.d.ts +0 -26
- package/dist/src/commands/each-flavor-is-asked-for-its-own-properties-file.test.d.ts.map +0 -1
- package/dist/src/commands/each-flavor-is-asked-for-its-own-properties-file.test.js +0 -196
- package/dist/src/commands/edit.d.ts +0 -12
- package/dist/src/commands/edit.d.ts.map +0 -1
- package/dist/src/commands/edit.js +0 -652
- package/dist/src/commands/edit.test.d.ts +0 -6
- package/dist/src/commands/edit.test.d.ts.map +0 -1
- package/dist/src/commands/edit.test.js +0 -45
- package/dist/src/commands/fidelity-trim.d.ts +0 -13
- package/dist/src/commands/fidelity-trim.d.ts.map +0 -1
- package/dist/src/commands/fidelity-trim.js +0 -21
- package/dist/src/commands/fidelity-trim.test.d.ts +0 -8
- package/dist/src/commands/fidelity-trim.test.d.ts.map +0 -1
- package/dist/src/commands/fidelity-trim.test.js +0 -79
- package/dist/src/commands/file-secret-collector.d.ts +0 -50
- package/dist/src/commands/file-secret-collector.d.ts.map +0 -1
- package/dist/src/commands/file-secret-collector.js +0 -217
- package/dist/src/commands/flavors-a-convention-plugin-creates-are-still-found.test.d.ts +0 -38
- package/dist/src/commands/flavors-a-convention-plugin-creates-are-still-found.test.d.ts.map +0 -1
- package/dist/src/commands/flavors-a-convention-plugin-creates-are-still-found.test.js +0 -300
- package/dist/src/commands/github-workflow.d.ts +0 -5
- package/dist/src/commands/github-workflow.d.ts.map +0 -1
- package/dist/src/commands/github-workflow.js +0 -45
- package/dist/src/commands/index.d.ts +0 -33
- package/dist/src/commands/index.d.ts.map +0 -1
- package/dist/src/commands/index.js +0 -33
- package/dist/src/commands/init.d.ts +0 -20
- package/dist/src/commands/init.d.ts.map +0 -1
- package/dist/src/commands/init.js +0 -264
- package/dist/src/commands/ios-scanner.d.ts +0 -104
- package/dist/src/commands/ios-scanner.d.ts.map +0 -1
- package/dist/src/commands/ios-scanner.js +0 -492
- package/dist/src/commands/ios-scheme-ranking.test.d.ts +0 -2
- package/dist/src/commands/ios-scheme-ranking.test.d.ts.map +0 -1
- package/dist/src/commands/ios-scheme-ranking.test.js +0 -264
- package/dist/src/commands/local-properties-reaches-every-workflow.test.d.ts +0 -30
- package/dist/src/commands/local-properties-reaches-every-workflow.test.d.ts.map +0 -1
- package/dist/src/commands/local-properties-reaches-every-workflow.test.js +0 -146
- package/dist/src/commands/reset.d.ts +0 -7
- package/dist/src/commands/reset.d.ts.map +0 -1
- package/dist/src/commands/reset.js +0 -81
- package/dist/src/commands/run.d.ts +0 -22
- package/dist/src/commands/run.d.ts.map +0 -1
- package/dist/src/commands/run.js +0 -141
- package/dist/src/commands/secrets-sync-workflow.d.ts +0 -15
- package/dist/src/commands/secrets-sync-workflow.d.ts.map +0 -1
- package/dist/src/commands/secrets-sync-workflow.js +0 -255
- package/dist/src/commands/secrets-upload.d.ts +0 -21
- package/dist/src/commands/secrets-upload.d.ts.map +0 -1
- package/dist/src/commands/secrets-upload.js +0 -177
- package/dist/src/commands/secrets-upload.test.d.ts +0 -5
- package/dist/src/commands/secrets-upload.test.d.ts.map +0 -1
- package/dist/src/commands/secrets-upload.test.js +0 -60
- package/dist/src/commands/validate.d.ts +0 -10
- package/dist/src/commands/validate.d.ts.map +0 -1
- package/dist/src/commands/validate.js +0 -46
- package/dist/src/config.d.ts +0 -3
- package/dist/src/config.d.ts.map +0 -1
- package/dist/src/config.js +0 -47
- package/dist/src/envman/cli.d.ts +0 -21
- package/dist/src/envman/cli.d.ts.map +0 -1
- package/dist/src/envman/cli.js +0 -240
- package/dist/src/envman/envman.d.ts +0 -83
- package/dist/src/envman/envman.d.ts.map +0 -1
- package/dist/src/envman/envman.js +0 -361
- package/dist/src/envman/envman.test.d.ts +0 -5
- package/dist/src/envman/envman.test.d.ts.map +0 -1
- package/dist/src/envman/envman.test.js +0 -236
- package/dist/src/envman/envstore-round-trip.test.d.ts +0 -27
- package/dist/src/envman/envstore-round-trip.test.d.ts.map +0 -1
- package/dist/src/envman/envstore-round-trip.test.js +0 -130
- package/dist/src/envman/index.d.ts +0 -23
- package/dist/src/envman/index.d.ts.map +0 -1
- package/dist/src/envman/index.js +0 -23
- package/dist/src/envman/shim.d.ts +0 -16
- package/dist/src/envman/shim.d.ts.map +0 -1
- package/dist/src/envman/shim.js +0 -66
- package/dist/src/envman/types.d.ts +0 -55
- package/dist/src/envman/types.d.ts.map +0 -1
- package/dist/src/envman/types.js +0 -12
- package/dist/src/lib.d.ts +0 -33
- package/dist/src/lib.d.ts.map +0 -1
- package/dist/src/lib.js +0 -37
- package/dist/src/pipeline.d.ts +0 -3
- package/dist/src/pipeline.d.ts.map +0 -1
- package/dist/src/pipeline.js +0 -57
- package/dist/src/runner-node-step.test.d.ts +0 -12
- package/dist/src/runner-node-step.test.d.ts.map +0 -1
- package/dist/src/runner-node-step.test.js +0 -61
- package/dist/src/runner.d.ts +0 -31
- package/dist/src/runner.d.ts.map +0 -1
- package/dist/src/runner.js +0 -240
- package/dist/src/shared/detect-project.d.ts +0 -57
- package/dist/src/shared/detect-project.d.ts.map +0 -1
- package/dist/src/shared/detect-project.js +0 -219
- package/dist/src/shared/detect-project.test.d.ts +0 -2
- package/dist/src/shared/detect-project.test.d.ts.map +0 -1
- package/dist/src/shared/detect-project.test.js +0 -161
- package/dist/src/shared/git.d.ts +0 -25
- package/dist/src/shared/git.d.ts.map +0 -1
- package/dist/src/shared/git.js +0 -53
- package/dist/src/shared/git.test.d.ts +0 -9
- package/dist/src/shared/git.test.d.ts.map +0 -1
- package/dist/src/shared/git.test.js +0 -66
- package/dist/src/shared/gitignore.d.ts +0 -6
- package/dist/src/shared/gitignore.d.ts.map +0 -1
- package/dist/src/shared/gitignore.js +0 -26
- package/dist/src/shared/gradle-settings.d.ts +0 -49
- package/dist/src/shared/gradle-settings.d.ts.map +0 -1
- package/dist/src/shared/gradle-settings.js +0 -138
- package/dist/src/shared/gradle-settings.test.d.ts +0 -2
- package/dist/src/shared/gradle-settings.test.d.ts.map +0 -1
- package/dist/src/shared/gradle-settings.test.js +0 -65
- package/dist/src/shared/prompts.d.ts +0 -30
- package/dist/src/shared/prompts.d.ts.map +0 -1
- package/dist/src/shared/prompts.js +0 -121
- package/dist/src/shared/xcode-container.test.d.ts +0 -2
- package/dist/src/shared/xcode-container.test.d.ts.map +0 -1
- package/dist/src/shared/xcode-container.test.js +0 -123
- package/dist/src/step-marker.d.ts +0 -12
- package/dist/src/step-marker.d.ts.map +0 -1
- package/dist/src/step-marker.js +0 -29
- package/dist/src/step-marker.test.d.ts +0 -11
- package/dist/src/step-marker.test.d.ts.map +0 -1
- package/dist/src/step-marker.test.js +0 -45
- package/dist/src/types.d.ts +0 -58
- package/dist/src/types.d.ts.map +0 -1
- package/dist/src/types.js +0 -2
- package/dist/src/yaml/a-cache-path-must-not-swallow-a-credential.test.d.ts +0 -28
- package/dist/src/yaml/a-cache-path-must-not-swallow-a-credential.test.d.ts.map +0 -1
- package/dist/src/yaml/a-cache-path-must-not-swallow-a-credential.test.js +0 -223
- package/dist/src/yaml/a-declared-secret-reaches-the-file-step.test.d.ts +0 -20
- package/dist/src/yaml/a-declared-secret-reaches-the-file-step.test.d.ts.map +0 -1
- package/dist/src/yaml/a-declared-secret-reaches-the-file-step.test.js +0 -201
- package/dist/src/yaml/a-declared-slot-may-name-the-workflow-it-belongs-to.test.d.ts +0 -37
- package/dist/src/yaml/a-declared-slot-may-name-the-workflow-it-belongs-to.test.d.ts.map +0 -1
- package/dist/src/yaml/a-declared-slot-may-name-the-workflow-it-belongs-to.test.js +0 -255
- package/dist/src/yaml/a-missing-credential-is-loud.test.d.ts +0 -32
- package/dist/src/yaml/a-missing-credential-is-loud.test.d.ts.map +0 -1
- package/dist/src/yaml/a-missing-credential-is-loud.test.js +0 -301
- package/dist/src/yaml/a-runtime-requirement-names-a-real-provider.test.d.ts +0 -18
- package/dist/src/yaml/a-runtime-requirement-names-a-real-provider.test.d.ts.map +0 -1
- package/dist/src/yaml/a-runtime-requirement-names-a-real-provider.test.js +0 -66
- package/dist/src/yaml/a-scoped-slot-must-name-a-workflow-the-pipeline-has.test.d.ts +0 -34
- package/dist/src/yaml/a-scoped-slot-must-name-a-workflow-the-pipeline-has.test.d.ts.map +0 -1
- package/dist/src/yaml/a-scoped-slot-must-name-a-workflow-the-pipeline-has.test.js +0 -218
- package/dist/src/yaml/a-value-this-instance-stored-is-a-value-it-has.test.d.ts +0 -27
- package/dist/src/yaml/a-value-this-instance-stored-is-a-value-it-has.test.d.ts.map +0 -1
- package/dist/src/yaml/a-value-this-instance-stored-is-a-value-it-has.test.js +0 -126
- package/dist/src/yaml/bitrise-compat.d.ts +0 -65
- package/dist/src/yaml/bitrise-compat.d.ts.map +0 -1
- package/dist/src/yaml/bitrise-compat.js +0 -206
- package/dist/src/yaml/bitrise-compat.test.d.ts +0 -5
- package/dist/src/yaml/bitrise-compat.test.d.ts.map +0 -1
- package/dist/src/yaml/bitrise-compat.test.js +0 -347
- package/dist/src/yaml/cache-key-missing-file.test.d.ts +0 -12
- package/dist/src/yaml/cache-key-missing-file.test.d.ts.map +0 -1
- package/dist/src/yaml/cache-key-missing-file.test.js +0 -116
- package/dist/src/yaml/converter.d.ts +0 -103
- package/dist/src/yaml/converter.d.ts.map +0 -1
- package/dist/src/yaml/converter.js +0 -420
- package/dist/src/yaml/converter.test.d.ts +0 -5
- package/dist/src/yaml/converter.test.d.ts.map +0 -1
- package/dist/src/yaml/converter.test.js +0 -548
- package/dist/src/yaml/e2e.test.d.ts +0 -6
- package/dist/src/yaml/e2e.test.d.ts.map +0 -1
- package/dist/src/yaml/e2e.test.js +0 -446
- package/dist/src/yaml/env-resolver.d.ts +0 -218
- package/dist/src/yaml/env-resolver.d.ts.map +0 -1
- package/dist/src/yaml/env-resolver.js +0 -591
- package/dist/src/yaml/env-resolver.test.d.ts +0 -5
- package/dist/src/yaml/env-resolver.test.d.ts.map +0 -1
- package/dist/src/yaml/env-resolver.test.js +0 -502
- package/dist/src/yaml/every-build-log-witnesses-the-commit-on-disk.test.d.ts +0 -16
- package/dist/src/yaml/every-build-log-witnesses-the-commit-on-disk.test.d.ts.map +0 -1
- package/dist/src/yaml/every-build-log-witnesses-the-commit-on-disk.test.js +0 -126
- package/dist/src/yaml/fidelity-input-digest.d.ts +0 -37
- package/dist/src/yaml/fidelity-input-digest.d.ts.map +0 -1
- package/dist/src/yaml/fidelity-input-digest.js +0 -208
- package/dist/src/yaml/fidelity-input-digest.test.d.ts +0 -2
- package/dist/src/yaml/fidelity-input-digest.test.d.ts.map +0 -1
- package/dist/src/yaml/fidelity-input-digest.test.js +0 -167
- package/dist/src/yaml/fidelity-manifest.d.ts +0 -126
- package/dist/src/yaml/fidelity-manifest.d.ts.map +0 -1
- package/dist/src/yaml/fidelity-manifest.js +0 -134
- package/dist/src/yaml/fidelity-manifest.test.d.ts +0 -12
- package/dist/src/yaml/fidelity-manifest.test.d.ts.map +0 -1
- package/dist/src/yaml/fidelity-manifest.test.js +0 -251
- package/dist/src/yaml/interactive-prompts.d.ts +0 -71
- package/dist/src/yaml/interactive-prompts.d.ts.map +0 -1
- package/dist/src/yaml/interactive-prompts.js +0 -260
- package/dist/src/yaml/meta-helpers.d.ts +0 -28
- package/dist/src/yaml/meta-helpers.d.ts.map +0 -1
- package/dist/src/yaml/meta-helpers.js +0 -46
- package/dist/src/yaml/missing-env-handler.d.ts +0 -45
- package/dist/src/yaml/missing-env-handler.d.ts.map +0 -1
- package/dist/src/yaml/missing-env-handler.js +0 -64
- package/dist/src/yaml/parser.d.ts +0 -33
- package/dist/src/yaml/parser.d.ts.map +0 -1
- package/dist/src/yaml/parser.js +0 -148
- package/dist/src/yaml/parser.test.d.ts +0 -5
- package/dist/src/yaml/parser.test.d.ts.map +0 -1
- package/dist/src/yaml/parser.test.js +0 -83
- package/dist/src/yaml/pipeline-with-secrets.d.ts +0 -25
- package/dist/src/yaml/pipeline-with-secrets.d.ts.map +0 -1
- package/dist/src/yaml/pipeline-with-secrets.js +0 -76
- package/dist/src/yaml/platform-detector.d.ts +0 -83
- package/dist/src/yaml/platform-detector.d.ts.map +0 -1
- package/dist/src/yaml/platform-detector.js +0 -189
- package/dist/src/yaml/platform-detector.test.d.ts +0 -5
- package/dist/src/yaml/platform-detector.test.d.ts.map +0 -1
- package/dist/src/yaml/platform-detector.test.js +0 -525
- package/dist/src/yaml/preflight-validation.d.ts +0 -29
- package/dist/src/yaml/preflight-validation.d.ts.map +0 -1
- package/dist/src/yaml/preflight-validation.js +0 -21
- package/dist/src/yaml/secrets-manager.d.ts +0 -87
- package/dist/src/yaml/secrets-manager.d.ts.map +0 -1
- package/dist/src/yaml/secrets-manager.js +0 -230
- package/dist/src/yaml/shell-assignments.d.ts +0 -40
- package/dist/src/yaml/shell-assignments.d.ts.map +0 -1
- package/dist/src/yaml/shell-assignments.js +0 -77
- package/dist/src/yaml/step-validator-check-failure.test.d.ts +0 -24
- package/dist/src/yaml/step-validator-check-failure.test.d.ts.map +0 -1
- package/dist/src/yaml/step-validator-check-failure.test.js +0 -130
- package/dist/src/yaml/step-validator-self-assigned.test.d.ts +0 -23
- package/dist/src/yaml/step-validator-self-assigned.test.d.ts.map +0 -1
- package/dist/src/yaml/step-validator-self-assigned.test.js +0 -191
- package/dist/src/yaml/step-validator.d.ts +0 -67
- package/dist/src/yaml/step-validator.d.ts.map +0 -1
- package/dist/src/yaml/step-validator.js +0 -466
- package/dist/src/yaml/step-validator.test.d.ts +0 -18
- package/dist/src/yaml/step-validator.test.d.ts.map +0 -1
- package/dist/src/yaml/step-validator.test.js +0 -140
- package/dist/src/yaml/steps/android-sign.d.ts +0 -35
- package/dist/src/yaml/steps/android-sign.d.ts.map +0 -1
- package/dist/src/yaml/steps/android-sign.js +0 -147
- package/dist/src/yaml/steps/android-variant-resolution.test.d.ts +0 -2
- package/dist/src/yaml/steps/android-variant-resolution.test.d.ts.map +0 -1
- package/dist/src/yaml/steps/android-variant-resolution.test.js +0 -260
- package/dist/src/yaml/steps/android-version.d.ts +0 -26
- package/dist/src/yaml/steps/android-version.d.ts.map +0 -1
- package/dist/src/yaml/steps/android-version.js +0 -128
- package/dist/src/yaml/steps/android-version.test.d.ts +0 -5
- package/dist/src/yaml/steps/android-version.test.d.ts.map +0 -1
- package/dist/src/yaml/steps/android-version.test.js +0 -196
- package/dist/src/yaml/steps/android.d.ts +0 -156
- package/dist/src/yaml/steps/android.d.ts.map +0 -1
- package/dist/src/yaml/steps/android.js +0 -1084
- package/dist/src/yaml/steps/app-store-deploy.d.ts +0 -48
- package/dist/src/yaml/steps/app-store-deploy.d.ts.map +0 -1
- package/dist/src/yaml/steps/app-store-deploy.js +0 -167
- package/dist/src/yaml/steps/base.d.ts +0 -263
- package/dist/src/yaml/steps/base.d.ts.map +0 -1
- package/dist/src/yaml/steps/base.js +0 -380
- package/dist/src/yaml/steps/bitrise-android-tools.d.ts +0 -26
- package/dist/src/yaml/steps/bitrise-android-tools.d.ts.map +0 -1
- package/dist/src/yaml/steps/bitrise-android-tools.js +0 -200
- package/dist/src/yaml/steps/bitrise-android-tools.test.d.ts +0 -5
- package/dist/src/yaml/steps/bitrise-android-tools.test.d.ts.map +0 -1
- package/dist/src/yaml/steps/bitrise-android-tools.test.js +0 -280
- package/dist/src/yaml/steps/bitrise-apk-info.d.ts +0 -22
- package/dist/src/yaml/steps/bitrise-apk-info.d.ts.map +0 -1
- package/dist/src/yaml/steps/bitrise-apk-info.js +0 -144
- package/dist/src/yaml/steps/bitrise-apk-info.test.d.ts +0 -5
- package/dist/src/yaml/steps/bitrise-apk-info.test.d.ts.map +0 -1
- package/dist/src/yaml/steps/bitrise-apk-info.test.js +0 -331
- package/dist/src/yaml/steps/bitrise-slack.d.ts +0 -49
- package/dist/src/yaml/steps/bitrise-slack.d.ts.map +0 -1
- package/dist/src/yaml/steps/bitrise-slack.js +0 -280
- package/dist/src/yaml/steps/bitrise-slack.test.d.ts +0 -5
- package/dist/src/yaml/steps/bitrise-slack.test.d.ts.map +0 -1
- package/dist/src/yaml/steps/bitrise-slack.test.js +0 -484
- package/dist/src/yaml/steps/bitrise-ssh.d.ts +0 -27
- package/dist/src/yaml/steps/bitrise-ssh.d.ts.map +0 -1
- package/dist/src/yaml/steps/bitrise-ssh.js +0 -134
- package/dist/src/yaml/steps/bitrise-ssh.test.d.ts +0 -5
- package/dist/src/yaml/steps/bitrise-ssh.test.d.ts.map +0 -1
- package/dist/src/yaml/steps/bitrise-ssh.test.js +0 -205
- package/dist/src/yaml/steps/cache-pull-daemon.test.d.ts +0 -27
- package/dist/src/yaml/steps/cache-pull-daemon.test.d.ts.map +0 -1
- package/dist/src/yaml/steps/cache-pull-daemon.test.js +0 -212
- package/dist/src/yaml/steps/cache-pull-restore-roots.test.d.ts +0 -42
- package/dist/src/yaml/steps/cache-pull-restore-roots.test.d.ts.map +0 -1
- package/dist/src/yaml/steps/cache-pull-restore-roots.test.js +0 -209
- package/dist/src/yaml/steps/cache-push-daemon.test.d.ts +0 -27
- package/dist/src/yaml/steps/cache-push-daemon.test.d.ts.map +0 -1
- package/dist/src/yaml/steps/cache-push-daemon.test.js +0 -171
- package/dist/src/yaml/steps/cache.d.ts +0 -59
- package/dist/src/yaml/steps/cache.d.ts.map +0 -1
- package/dist/src/yaml/steps/cache.js +0 -1027
- package/dist/src/yaml/steps/cocoapods-deployment-floor.d.ts +0 -42
- package/dist/src/yaml/steps/cocoapods-deployment-floor.d.ts.map +0 -1
- package/dist/src/yaml/steps/cocoapods-deployment-floor.js +0 -140
- package/dist/src/yaml/steps/cocoapods-deployment-floor.test.d.ts +0 -11
- package/dist/src/yaml/steps/cocoapods-deployment-floor.test.d.ts.map +0 -1
- package/dist/src/yaml/steps/cocoapods-deployment-floor.test.js +0 -176
- package/dist/src/yaml/steps/cocoapods-install-emits-valid-bash.test.d.ts +0 -22
- package/dist/src/yaml/steps/cocoapods-install-emits-valid-bash.test.d.ts.map +0 -1
- package/dist/src/yaml/steps/cocoapods-install-emits-valid-bash.test.js +0 -97
- package/dist/src/yaml/steps/cocoapods-locked-bundler.test.d.ts +0 -17
- package/dist/src/yaml/steps/cocoapods-locked-bundler.test.d.ts.map +0 -1
- package/dist/src/yaml/steps/cocoapods-locked-bundler.test.js +0 -282
- package/dist/src/yaml/steps/cocoapods-skip-if-absent.test.d.ts +0 -17
- package/dist/src/yaml/steps/cocoapods-skip-if-absent.test.d.ts.map +0 -1
- package/dist/src/yaml/steps/cocoapods-skip-if-absent.test.js +0 -132
- package/dist/src/yaml/steps/envstore-loader.test.d.ts +0 -15
- package/dist/src/yaml/steps/envstore-loader.test.d.ts.map +0 -1
- package/dist/src/yaml/steps/envstore-loader.test.js +0 -143
- package/dist/src/yaml/steps/fastlane.d.ts +0 -27
- package/dist/src/yaml/steps/fastlane.d.ts.map +0 -1
- package/dist/src/yaml/steps/fastlane.js +0 -79
- package/dist/src/yaml/steps/fidelity-aspect-guard.d.ts +0 -53
- package/dist/src/yaml/steps/fidelity-aspect-guard.d.ts.map +0 -1
- package/dist/src/yaml/steps/fidelity-aspect-guard.js +0 -72
- package/dist/src/yaml/steps/fidelity-aspect-guard.test.d.ts +0 -11
- package/dist/src/yaml/steps/fidelity-aspect-guard.test.d.ts.map +0 -1
- package/dist/src/yaml/steps/fidelity-aspect-guard.test.js +0 -50
- package/dist/src/yaml/steps/fidelity-reference-provenance.d.ts +0 -87
- package/dist/src/yaml/steps/fidelity-reference-provenance.d.ts.map +0 -1
- package/dist/src/yaml/steps/fidelity-reference-provenance.js +0 -111
- package/dist/src/yaml/steps/fidelity-reference-provenance.test.d.ts +0 -22
- package/dist/src/yaml/steps/fidelity-reference-provenance.test.d.ts.map +0 -1
- package/dist/src/yaml/steps/fidelity-reference-provenance.test.js +0 -118
- package/dist/src/yaml/steps/file.d.ts +0 -52
- package/dist/src/yaml/steps/file.d.ts.map +0 -1
- package/dist/src/yaml/steps/file.js +0 -108
- package/dist/src/yaml/steps/flutter.d.ts +0 -63
- package/dist/src/yaml/steps/flutter.d.ts.map +0 -1
- package/dist/src/yaml/steps/flutter.js +0 -215
- package/dist/src/yaml/steps/git-clone-names-the-inputs-it-ignores.test.d.ts +0 -16
- package/dist/src/yaml/steps/git-clone-names-the-inputs-it-ignores.test.d.ts.map +0 -1
- package/dist/src/yaml/steps/git-clone-names-the-inputs-it-ignores.test.js +0 -127
- package/dist/src/yaml/steps/git-clone.d.ts +0 -32
- package/dist/src/yaml/steps/git-clone.d.ts.map +0 -1
- package/dist/src/yaml/steps/git-clone.js +0 -171
- package/dist/src/yaml/steps/git-fetch-retry-exec.test.d.ts +0 -10
- package/dist/src/yaml/steps/git-fetch-retry-exec.test.d.ts.map +0 -1
- package/dist/src/yaml/steps/git-fetch-retry-exec.test.js +0 -162
- package/dist/src/yaml/steps/git-fetch-retry.d.ts +0 -62
- package/dist/src/yaml/steps/git-fetch-retry.d.ts.map +0 -1
- package/dist/src/yaml/steps/git-fetch-retry.js +0 -155
- package/dist/src/yaml/steps/git-fetch-retry.test.d.ts +0 -5
- package/dist/src/yaml/steps/git-fetch-retry.test.d.ts.map +0 -1
- package/dist/src/yaml/steps/git-fetch-retry.test.js +0 -86
- package/dist/src/yaml/steps/google-play-deploy.d.ts +0 -37
- package/dist/src/yaml/steps/google-play-deploy.d.ts.map +0 -1
- package/dist/src/yaml/steps/google-play-deploy.js +0 -193
- package/dist/src/yaml/steps/google-play-deploy.test.d.ts +0 -5
- package/dist/src/yaml/steps/google-play-deploy.test.d.ts.map +0 -1
- package/dist/src/yaml/steps/google-play-deploy.test.js +0 -310
- package/dist/src/yaml/steps/gradle-memory.d.ts +0 -61
- package/dist/src/yaml/steps/gradle-memory.d.ts.map +0 -1
- package/dist/src/yaml/steps/gradle-memory.js +0 -311
- package/dist/src/yaml/steps/gradle-memory.test.d.ts +0 -2
- package/dist/src/yaml/steps/gradle-memory.test.d.ts.map +0 -1
- package/dist/src/yaml/steps/gradle-memory.test.js +0 -297
- package/dist/src/yaml/steps/gradle-sdk-cmake.d.ts +0 -28
- package/dist/src/yaml/steps/gradle-sdk-cmake.d.ts.map +0 -1
- package/dist/src/yaml/steps/gradle-sdk-cmake.js +0 -107
- package/dist/src/yaml/steps/gradle-sdk-cmake.test.d.ts +0 -2
- package/dist/src/yaml/steps/gradle-sdk-cmake.test.d.ts.map +0 -1
- package/dist/src/yaml/steps/gradle-sdk-cmake.test.js +0 -183
- package/dist/src/yaml/steps/index.d.ts +0 -10
- package/dist/src/yaml/steps/index.d.ts.map +0 -1
- package/dist/src/yaml/steps/index.js +0 -1461
- package/dist/src/yaml/steps/ios-deps.d.ts +0 -78
- package/dist/src/yaml/steps/ios-deps.d.ts.map +0 -1
- package/dist/src/yaml/steps/ios-deps.js +0 -279
- package/dist/src/yaml/steps/ios-deps.test.d.ts +0 -5
- package/dist/src/yaml/steps/ios-deps.test.d.ts.map +0 -1
- package/dist/src/yaml/steps/ios-deps.test.js +0 -90
- package/dist/src/yaml/steps/ios-signing.d.ts +0 -31
- package/dist/src/yaml/steps/ios-signing.d.ts.map +0 -1
- package/dist/src/yaml/steps/ios-signing.js +0 -144
- package/dist/src/yaml/steps/ios-version.d.ts +0 -47
- package/dist/src/yaml/steps/ios-version.d.ts.map +0 -1
- package/dist/src/yaml/steps/ios-version.js +0 -151
- package/dist/src/yaml/steps/java-home-version-spec.test.d.ts +0 -10
- package/dist/src/yaml/steps/java-home-version-spec.test.d.ts.map +0 -1
- package/dist/src/yaml/steps/java-home-version-spec.test.js +0 -58
- package/dist/src/yaml/steps/linting.d.ts +0 -47
- package/dist/src/yaml/steps/linting.d.ts.map +0 -1
- package/dist/src/yaml/steps/linting.js +0 -148
- package/dist/src/yaml/steps/phase2.test.d.ts +0 -6
- package/dist/src/yaml/steps/phase2.test.d.ts.map +0 -1
- package/dist/src/yaml/steps/phase2.test.js +0 -197
- package/dist/src/yaml/steps/phase3.test.d.ts +0 -5
- package/dist/src/yaml/steps/phase3.test.d.ts.map +0 -1
- package/dist/src/yaml/steps/phase3.test.js +0 -144
- package/dist/src/yaml/steps/phase4.test.d.ts +0 -5
- package/dist/src/yaml/steps/phase4.test.d.ts.map +0 -1
- package/dist/src/yaml/steps/phase4.test.js +0 -166
- package/dist/src/yaml/steps/phase5.test.d.ts +0 -6
- package/dist/src/yaml/steps/phase5.test.d.ts.map +0 -1
- package/dist/src/yaml/steps/phase5.test.js +0 -263
- package/dist/src/yaml/steps/registry.d.ts +0 -88
- package/dist/src/yaml/steps/registry.d.ts.map +0 -1
- package/dist/src/yaml/steps/registry.js +0 -125
- package/dist/src/yaml/steps/registry.test.d.ts +0 -5
- package/dist/src/yaml/steps/registry.test.d.ts.map +0 -1
- package/dist/src/yaml/steps/registry.test.js +0 -235
- package/dist/src/yaml/steps/release.d.ts +0 -50
- package/dist/src/yaml/steps/release.d.ts.map +0 -1
- package/dist/src/yaml/steps/release.js +0 -154
- package/dist/src/yaml/steps/render-post-processor.d.ts +0 -100
- package/dist/src/yaml/steps/render-post-processor.d.ts.map +0 -1
- package/dist/src/yaml/steps/render-post-processor.js +0 -270
- package/dist/src/yaml/steps/render-post-processor.test.d.ts +0 -13
- package/dist/src/yaml/steps/render-post-processor.test.d.ts.map +0 -1
- package/dist/src/yaml/steps/render-post-processor.test.js +0 -220
- package/dist/src/yaml/steps/script.d.ts +0 -23
- package/dist/src/yaml/steps/script.d.ts.map +0 -1
- package/dist/src/yaml/steps/script.js +0 -63
- package/dist/src/yaml/steps/spec-validation.test.d.ts +0 -6
- package/dist/src/yaml/steps/spec-validation.test.d.ts.map +0 -1
- package/dist/src/yaml/steps/spec-validation.test.js +0 -130
- package/dist/src/yaml/steps/steps.test.d.ts +0 -6
- package/dist/src/yaml/steps/steps.test.d.ts.map +0 -1
- package/dist/src/yaml/steps/steps.test.js +0 -881
- package/dist/src/yaml/steps/structural-facts.d.ts +0 -992
- package/dist/src/yaml/steps/structural-facts.d.ts.map +0 -1
- package/dist/src/yaml/steps/structural-facts.js +0 -3276
- package/dist/src/yaml/steps/structural-facts.test.d.ts +0 -12
- package/dist/src/yaml/steps/structural-facts.test.d.ts.map +0 -1
- package/dist/src/yaml/steps/structural-facts.test.js +0 -3039
- package/dist/src/yaml/steps/test-config.d.ts +0 -5
- package/dist/src/yaml/steps/test-config.d.ts.map +0 -1
- package/dist/src/yaml/steps/test-config.js +0 -25
- package/dist/src/yaml/steps/trim-align-corpus.test.d.ts +0 -28
- package/dist/src/yaml/steps/trim-align-corpus.test.d.ts.map +0 -1
- package/dist/src/yaml/steps/trim-align-corpus.test.js +0 -383
- package/dist/src/yaml/steps/trim-align.d.ts +0 -87
- package/dist/src/yaml/steps/trim-align.d.ts.map +0 -1
- package/dist/src/yaml/steps/trim-align.js +0 -367
- package/dist/src/yaml/steps/trim-align.test.d.ts +0 -11
- package/dist/src/yaml/steps/trim-align.test.d.ts.map +0 -1
- package/dist/src/yaml/steps/trim-align.test.js +0 -261
- package/dist/src/yaml/steps/ui-fidelity-preview-android.d.ts +0 -66
- package/dist/src/yaml/steps/ui-fidelity-preview-android.d.ts.map +0 -1
- package/dist/src/yaml/steps/ui-fidelity-preview-android.js +0 -251
- package/dist/src/yaml/steps/ui-fidelity-preview-android.test.d.ts +0 -13
- package/dist/src/yaml/steps/ui-fidelity-preview-android.test.d.ts.map +0 -1
- package/dist/src/yaml/steps/ui-fidelity-preview-android.test.js +0 -302
- package/dist/src/yaml/steps/ui-fidelity-preview.d.ts +0 -134
- package/dist/src/yaml/steps/ui-fidelity-preview.d.ts.map +0 -1
- package/dist/src/yaml/steps/ui-fidelity-preview.js +0 -173
- package/dist/src/yaml/steps/ui-fidelity-preview.test.d.ts +0 -11
- package/dist/src/yaml/steps/ui-fidelity-preview.test.d.ts.map +0 -1
- package/dist/src/yaml/steps/ui-fidelity-preview.test.js +0 -210
- package/dist/src/yaml/steps/ui-fidelity-render-android.d.ts +0 -155
- package/dist/src/yaml/steps/ui-fidelity-render-android.d.ts.map +0 -1
- package/dist/src/yaml/steps/ui-fidelity-render-android.js +0 -1389
- package/dist/src/yaml/steps/ui-fidelity-render-android.test.d.ts +0 -2
- package/dist/src/yaml/steps/ui-fidelity-render-android.test.d.ts.map +0 -1
- package/dist/src/yaml/steps/ui-fidelity-render-android.test.js +0 -1106
- package/dist/src/yaml/steps/ui-fidelity-render.d.ts +0 -230
- package/dist/src/yaml/steps/ui-fidelity-render.d.ts.map +0 -1
- package/dist/src/yaml/steps/ui-fidelity-render.js +0 -1597
- package/dist/src/yaml/steps/ui-fidelity-render.test.d.ts +0 -18
- package/dist/src/yaml/steps/ui-fidelity-render.test.d.ts.map +0 -1
- package/dist/src/yaml/steps/ui-fidelity-render.test.js +0 -1871
- package/dist/src/yaml/steps/xcode-app-product.d.ts +0 -90
- package/dist/src/yaml/steps/xcode-app-product.d.ts.map +0 -1
- package/dist/src/yaml/steps/xcode-app-product.js +0 -247
- package/dist/src/yaml/steps/xcode-app-product.test.d.ts +0 -2
- package/dist/src/yaml/steps/xcode-app-product.test.d.ts.map +0 -1
- package/dist/src/yaml/steps/xcode-app-product.test.js +0 -202
- package/dist/src/yaml/steps/xcode-derived-data.test.d.ts +0 -30
- package/dist/src/yaml/steps/xcode-derived-data.test.d.ts.map +0 -1
- package/dist/src/yaml/steps/xcode-derived-data.test.js +0 -253
- package/dist/src/yaml/steps/xcode-destination.d.ts +0 -47
- package/dist/src/yaml/steps/xcode-destination.d.ts.map +0 -1
- package/dist/src/yaml/steps/xcode-destination.js +0 -202
- package/dist/src/yaml/steps/xcode-destination.test.d.ts +0 -9
- package/dist/src/yaml/steps/xcode-destination.test.d.ts.map +0 -1
- package/dist/src/yaml/steps/xcode-destination.test.js +0 -227
- package/dist/src/yaml/steps/xcode-new.test.d.ts +0 -5
- package/dist/src/yaml/steps/xcode-new.test.d.ts.map +0 -1
- package/dist/src/yaml/steps/xcode-new.test.js +0 -211
- package/dist/src/yaml/steps/xcode-resolve-retry.test.d.ts +0 -9
- package/dist/src/yaml/steps/xcode-resolve-retry.test.d.ts.map +0 -1
- package/dist/src/yaml/steps/xcode-resolve-retry.test.js +0 -146
- package/dist/src/yaml/steps/xcode-simulator-archs.d.ts +0 -53
- package/dist/src/yaml/steps/xcode-simulator-archs.d.ts.map +0 -1
- package/dist/src/yaml/steps/xcode-simulator-archs.js +0 -98
- package/dist/src/yaml/steps/xcode-simulator-archs.test.d.ts +0 -21
- package/dist/src/yaml/steps/xcode-simulator-archs.test.d.ts.map +0 -1
- package/dist/src/yaml/steps/xcode-simulator-archs.test.js +0 -155
- package/dist/src/yaml/steps/xcode.d.ts +0 -230
- package/dist/src/yaml/steps/xcode.d.ts.map +0 -1
- package/dist/src/yaml/steps/xcode.js +0 -1340
- package/dist/src/yaml/types.d.ts +0 -76
- package/dist/src/yaml/types.d.ts.map +0 -1
- package/dist/src/yaml/types.js +0 -5
- package/dist/src/yaml/validation-types.d.ts +0 -102
- package/dist/src/yaml/validation-types.d.ts.map +0 -1
- package/dist/src/yaml/validation-types.js +0 -8
- package/dist/src/yaml/yaml-updater.d.ts +0 -24
- package/dist/src/yaml/yaml-updater.d.ts.map +0 -1
- package/dist/src/yaml/yaml-updater.js +0 -128
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* iOS version management steps: set-xcode-build-number, set-ios-version
|
|
3
|
-
*/
|
|
4
|
-
import { BaseStepExecutor } from './base.js';
|
|
5
|
-
import type { StepDef, CIConfig } from '../../types.js';
|
|
6
|
-
import type { ValidationRequirement, StepOutput } from '../validation-types.js';
|
|
7
|
-
export interface SetXcodeBuildNumberInputs {
|
|
8
|
-
/** Path to .xcodeproj or .xcworkspace */
|
|
9
|
-
project_path?: string;
|
|
10
|
-
/** Xcode scheme name */
|
|
11
|
-
scheme?: string;
|
|
12
|
-
/** Target name (optional — uses scheme's default target if empty) */
|
|
13
|
-
target?: string;
|
|
14
|
-
/** Build number value (CFBundleVersion / CURRENT_PROJECT_VERSION) */
|
|
15
|
-
build_version?: string;
|
|
16
|
-
/** Offset added to build_version */
|
|
17
|
-
build_version_offset?: string;
|
|
18
|
-
/** Marketing version (CFBundleShortVersionString / MARKETING_VERSION) */
|
|
19
|
-
build_short_version_string?: string;
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Updates the Xcode project's build number (CFBundleVersion) and optionally
|
|
23
|
-
* the marketing version (CFBundleShortVersionString) using agvtool and PlistBuddy.
|
|
24
|
-
*/
|
|
25
|
-
export declare class SetXcodeBuildNumberStepExecutor extends BaseStepExecutor {
|
|
26
|
-
getValidationRequirements(inputs: SetXcodeBuildNumberInputs, _env: Record<string, string>, _config: CIConfig): ValidationRequirement[];
|
|
27
|
-
getOutputs(): StepOutput[];
|
|
28
|
-
execute(inputs: SetXcodeBuildNumberInputs, _env: Record<string, string>, _config: CIConfig): Promise<StepDef>;
|
|
29
|
-
}
|
|
30
|
-
export interface SetIosVersionInputs {
|
|
31
|
-
/** Path to Info.plist file */
|
|
32
|
-
info_plist_file?: string;
|
|
33
|
-
/** CFBundleVersion (build number) */
|
|
34
|
-
bundle_version?: string;
|
|
35
|
-
/** CFBundleShortVersionString (marketing version) */
|
|
36
|
-
bundle_version_short?: string;
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* Directly edits an Info.plist file to set CFBundleVersion and/or
|
|
40
|
-
* CFBundleShortVersionString using PlistBuddy.
|
|
41
|
-
*/
|
|
42
|
-
export declare class SetIosVersionStepExecutor extends BaseStepExecutor {
|
|
43
|
-
getValidationRequirements(inputs: SetIosVersionInputs, _env: Record<string, string>, _config: CIConfig): ValidationRequirement[];
|
|
44
|
-
getOutputs(): StepOutput[];
|
|
45
|
-
execute(inputs: SetIosVersionInputs, _env: Record<string, string>, _config: CIConfig): Promise<StepDef>;
|
|
46
|
-
}
|
|
47
|
-
//# sourceMappingURL=ios-version.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ios-version.d.ts","sourceRoot":"","sources":["../../../../src/yaml/steps/ios-version.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAC7C,OAAO,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AACxD,OAAO,KAAK,EAAE,qBAAqB,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAMhF,MAAM,WAAW,yBAAyB;IACxC,yCAAyC;IACzC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,wBAAwB;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,qEAAqE;IACrE,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,qEAAqE;IACrE,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,oCAAoC;IACpC,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,yEAAyE;IACzE,0BAA0B,CAAC,EAAE,MAAM,CAAC;CACrC;AAED;;;GAGG;AACH,qBAAa,+BAAgC,SAAQ,gBAAgB;IACnE,yBAAyB,CACvB,MAAM,EAAE,yBAAyB,EACjC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAC5B,OAAO,EAAE,QAAQ,GAChB,qBAAqB,EAAE;IAM1B,UAAU,IAAI,UAAU,EAAE;IAMpB,OAAO,CAAC,MAAM,EAAE,yBAAyB,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,OAAO,CAAC;CAqFpH;AAMD,MAAM,WAAW,mBAAmB;IAClC,8BAA8B;IAC9B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,qCAAqC;IACrC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,qDAAqD;IACrD,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B;AAED;;;GAGG;AACH,qBAAa,yBAA0B,SAAQ,gBAAgB;IAC7D,yBAAyB,CACvB,MAAM,EAAE,mBAAmB,EAC3B,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAC5B,OAAO,EAAE,QAAQ,GAChB,qBAAqB,EAAE;IAM1B,UAAU,IAAI,UAAU,EAAE;IAOpB,OAAO,CAAC,MAAM,EAAE,mBAAmB,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,OAAO,CAAC;CA0C9G"}
|
|
@@ -1,151 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* iOS version management steps: set-xcode-build-number, set-ios-version
|
|
3
|
-
*/
|
|
4
|
-
import { BaseStepExecutor } from './base.js';
|
|
5
|
-
/**
|
|
6
|
-
* Updates the Xcode project's build number (CFBundleVersion) and optionally
|
|
7
|
-
* the marketing version (CFBundleShortVersionString) using agvtool and PlistBuddy.
|
|
8
|
-
*/
|
|
9
|
-
export class SetXcodeBuildNumberStepExecutor extends BaseStepExecutor {
|
|
10
|
-
getValidationRequirements(inputs, _env, _config) {
|
|
11
|
-
return [
|
|
12
|
-
this.requireCommand('xcodebuild', 'Xcode is required for setting build numbers'),
|
|
13
|
-
];
|
|
14
|
-
}
|
|
15
|
-
getOutputs() {
|
|
16
|
-
return [
|
|
17
|
-
{ name: 'CIBUILD_BUNDLE_VERSION', type: 'environment', description: 'The bundle version that was set' },
|
|
18
|
-
];
|
|
19
|
-
}
|
|
20
|
-
async execute(inputs, _env, _config) {
|
|
21
|
-
const stepName = 'set-xcode-build-number';
|
|
22
|
-
const projectPath = this.getInput(inputs, 'project_path', '');
|
|
23
|
-
const scheme = this.getInput(inputs, 'scheme', '');
|
|
24
|
-
const target = this.getInput(inputs, 'target', '');
|
|
25
|
-
const buildVersion = this.getInput(inputs, 'build_version', '$CIBUILD_BUILD_NUMBER');
|
|
26
|
-
const buildVersionOffset = this.getInput(inputs, 'build_version_offset', '');
|
|
27
|
-
const buildShortVersionString = this.getInput(inputs, 'build_short_version_string', '');
|
|
28
|
-
const commands = [];
|
|
29
|
-
commands.push('# set-xcode-build-number');
|
|
30
|
-
commands.push('echo "🔢 Setting Xcode build number..."');
|
|
31
|
-
commands.push('');
|
|
32
|
-
// Resolve project path
|
|
33
|
-
if (projectPath) {
|
|
34
|
-
commands.push(`PROJECT_PATH='${this.escapeBash(projectPath)}'`);
|
|
35
|
-
}
|
|
36
|
-
else {
|
|
37
|
-
commands.push('PROJECT_PATH="${CIBUILD_PROJECT_PATH:-}"');
|
|
38
|
-
commands.push('if [ -z "$PROJECT_PATH" ]; then');
|
|
39
|
-
commands.push(' PROJECT_PATH=$(find . -maxdepth 1 -name "*.xcodeproj" | head -1)');
|
|
40
|
-
commands.push('fi');
|
|
41
|
-
}
|
|
42
|
-
commands.push('');
|
|
43
|
-
// Compute build version
|
|
44
|
-
commands.push(`BUILD_VERSION="${buildVersion}"`);
|
|
45
|
-
if (buildVersionOffset) {
|
|
46
|
-
commands.push('# Apply offset to build version');
|
|
47
|
-
commands.push(`OFFSET=${this.escapeBash(buildVersionOffset)}`);
|
|
48
|
-
commands.push('if [[ "$BUILD_VERSION" =~ ^[0-9]+$ ]]; then');
|
|
49
|
-
commands.push(' BUILD_VERSION=$((BUILD_VERSION + OFFSET))');
|
|
50
|
-
commands.push('fi');
|
|
51
|
-
}
|
|
52
|
-
commands.push('echo "Build version: $BUILD_VERSION"');
|
|
53
|
-
commands.push('');
|
|
54
|
-
// Determine project dir for agvtool
|
|
55
|
-
commands.push('# Navigate to project directory');
|
|
56
|
-
commands.push('if [[ "$PROJECT_PATH" == *.xcworkspace ]]; then');
|
|
57
|
-
commands.push(' # For workspaces, look for the .xcodeproj inside');
|
|
58
|
-
commands.push(' PROJECT_DIR="$(dirname "$PROJECT_PATH")"');
|
|
59
|
-
commands.push('else');
|
|
60
|
-
commands.push(' PROJECT_DIR="$(dirname "$PROJECT_PATH")"');
|
|
61
|
-
commands.push('fi');
|
|
62
|
-
commands.push('cd "$PROJECT_DIR"');
|
|
63
|
-
commands.push('');
|
|
64
|
-
// Try agvtool first, fall back to PlistBuddy
|
|
65
|
-
commands.push('# Set build number using agvtool');
|
|
66
|
-
commands.push('if agvtool what-version &>/dev/null; then');
|
|
67
|
-
commands.push(' agvtool new-version -all "$BUILD_VERSION"');
|
|
68
|
-
if (buildShortVersionString) {
|
|
69
|
-
commands.push(` agvtool new-marketing-version '${this.escapeBash(buildShortVersionString)}'`);
|
|
70
|
-
}
|
|
71
|
-
commands.push(' echo "✅ Updated via agvtool"');
|
|
72
|
-
commands.push('else');
|
|
73
|
-
commands.push(' echo "agvtool not available or versioning not enabled — using PlistBuddy"');
|
|
74
|
-
// Find Info.plist
|
|
75
|
-
if (target) {
|
|
76
|
-
commands.push(` INFO_PLIST=$(xcodebuild -target '${this.escapeBash(target)}' -showBuildSettings 2>/dev/null | grep INFOPLIST_FILE | head -1 | awk '{print $3}')`);
|
|
77
|
-
}
|
|
78
|
-
else {
|
|
79
|
-
commands.push(' INFO_PLIST=$(find . -name "Info.plist" -not -path "*/Pods/*" -not -path "*/DerivedData/*" | head -1)');
|
|
80
|
-
}
|
|
81
|
-
commands.push(' if [ -n "$INFO_PLIST" ] && [ -f "$INFO_PLIST" ]; then');
|
|
82
|
-
commands.push(' /usr/libexec/PlistBuddy -c "Set :CFBundleVersion $BUILD_VERSION" "$INFO_PLIST"');
|
|
83
|
-
if (buildShortVersionString) {
|
|
84
|
-
commands.push(` /usr/libexec/PlistBuddy -c "Set :CFBundleShortVersionString ${this.escapeBash(buildShortVersionString)}" "$INFO_PLIST"`);
|
|
85
|
-
}
|
|
86
|
-
commands.push(' echo "✅ Updated Info.plist: $INFO_PLIST"');
|
|
87
|
-
commands.push(' else');
|
|
88
|
-
commands.push(' echo "❌ Error: Could not find Info.plist"');
|
|
89
|
-
commands.push(' exit 1');
|
|
90
|
-
commands.push(' fi');
|
|
91
|
-
commands.push('fi');
|
|
92
|
-
commands.push('');
|
|
93
|
-
// Export
|
|
94
|
-
commands.push('envman add --key CIBUILD_BUNDLE_VERSION --value "$BUILD_VERSION"');
|
|
95
|
-
const script = this.createBashScriptFromCommands(commands, stepName);
|
|
96
|
-
return this.createScriptStep(script, stepName);
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
/**
|
|
100
|
-
* Directly edits an Info.plist file to set CFBundleVersion and/or
|
|
101
|
-
* CFBundleShortVersionString using PlistBuddy.
|
|
102
|
-
*/
|
|
103
|
-
export class SetIosVersionStepExecutor extends BaseStepExecutor {
|
|
104
|
-
getValidationRequirements(inputs, _env, _config) {
|
|
105
|
-
return [
|
|
106
|
-
this.requireCommand('/usr/libexec/PlistBuddy', 'PlistBuddy is required (macOS built-in)'),
|
|
107
|
-
];
|
|
108
|
-
}
|
|
109
|
-
getOutputs() {
|
|
110
|
-
return [
|
|
111
|
-
{ name: 'CIBUILD_APP_VERSION', type: 'environment', description: 'CFBundleShortVersionString that was set' },
|
|
112
|
-
{ name: 'CIBUILD_APP_BUILD', type: 'environment', description: 'CFBundleVersion that was set' },
|
|
113
|
-
];
|
|
114
|
-
}
|
|
115
|
-
async execute(inputs, _env, _config) {
|
|
116
|
-
const stepName = 'set-ios-version';
|
|
117
|
-
const infoPlistFile = this.getRequiredInput(inputs, 'info_plist_file', stepName);
|
|
118
|
-
const bundleVersion = this.getInput(inputs, 'bundle_version', '');
|
|
119
|
-
const bundleVersionShort = this.getInput(inputs, 'bundle_version_short', '');
|
|
120
|
-
const commands = [];
|
|
121
|
-
commands.push('# set-ios-version — edit Info.plist directly');
|
|
122
|
-
commands.push(`INFO_PLIST='${this.escapeBash(infoPlistFile)}'`);
|
|
123
|
-
commands.push('');
|
|
124
|
-
commands.push('if [ ! -f "$INFO_PLIST" ]; then');
|
|
125
|
-
commands.push(' echo "❌ Error: Info.plist not found: $INFO_PLIST"');
|
|
126
|
-
commands.push(' exit 1');
|
|
127
|
-
commands.push('fi');
|
|
128
|
-
commands.push('');
|
|
129
|
-
if (bundleVersion) {
|
|
130
|
-
commands.push(`echo "Setting CFBundleVersion to: ${this.escapeBash(bundleVersion)}"`);
|
|
131
|
-
commands.push(`/usr/libexec/PlistBuddy -c "Set :CFBundleVersion ${this.escapeBash(bundleVersion)}" "$INFO_PLIST"`);
|
|
132
|
-
commands.push('');
|
|
133
|
-
}
|
|
134
|
-
if (bundleVersionShort) {
|
|
135
|
-
commands.push(`echo "Setting CFBundleShortVersionString to: ${this.escapeBash(bundleVersionShort)}"`);
|
|
136
|
-
commands.push(`/usr/libexec/PlistBuddy -c "Set :CFBundleShortVersionString ${this.escapeBash(bundleVersionShort)}" "$INFO_PLIST"`);
|
|
137
|
-
commands.push('');
|
|
138
|
-
}
|
|
139
|
-
// Read back and export
|
|
140
|
-
commands.push('# Read back values and export');
|
|
141
|
-
commands.push('FINAL_VERSION=$(/usr/libexec/PlistBuddy -c "Print :CFBundleShortVersionString" "$INFO_PLIST" 2>/dev/null || echo "")');
|
|
142
|
-
commands.push('FINAL_BUILD=$(/usr/libexec/PlistBuddy -c "Print :CFBundleVersion" "$INFO_PLIST" 2>/dev/null || echo "")');
|
|
143
|
-
commands.push('echo "✅ Version: $FINAL_VERSION ($FINAL_BUILD)"');
|
|
144
|
-
commands.push('');
|
|
145
|
-
commands.push('envman add --key CIBUILD_APP_VERSION --value "$FINAL_VERSION"');
|
|
146
|
-
commands.push('envman add --key CIBUILD_APP_BUILD --value "$FINAL_BUILD"');
|
|
147
|
-
const script = this.createBashScriptFromCommands(commands, stepName);
|
|
148
|
-
return this.createScriptStep(script, stepName);
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
//# sourceMappingURL=ios-version.js.map
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* `/usr/libexec/java_home -v` is permissive, so asking it the wrong way does
|
|
3
|
-
* not fail — it returns the wrong JDK and reports success. These tests pin the
|
|
4
|
-
* one version where the spec differs from the major.
|
|
5
|
-
*
|
|
6
|
-
* Measured on macOS 15.7.3 in the runner image with Corretto 8 and OpenJDK 25
|
|
7
|
-
* both installed: `-v 8` -> OpenJDK 25.0.2, `-v 1.8` -> Amazon Corretto 8.
|
|
8
|
-
*/
|
|
9
|
-
export {};
|
|
10
|
-
//# sourceMappingURL=java-home-version-spec.test.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"java-home-version-spec.test.d.ts","sourceRoot":"","sources":["../../../../src/yaml/steps/java-home-version-spec.test.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG"}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* `/usr/libexec/java_home -v` is permissive, so asking it the wrong way does
|
|
3
|
-
* not fail — it returns the wrong JDK and reports success. These tests pin the
|
|
4
|
-
* one version where the spec differs from the major.
|
|
5
|
-
*
|
|
6
|
-
* Measured on macOS 15.7.3 in the runner image with Corretto 8 and OpenJDK 25
|
|
7
|
-
* both installed: `-v 8` -> OpenJDK 25.0.2, `-v 1.8` -> Amazon Corretto 8.
|
|
8
|
-
*/
|
|
9
|
-
import { describe, test, expect } from '@jest/globals';
|
|
10
|
-
import { javaHomeVersionSpec } from './base.js';
|
|
11
|
-
import { SetJavaVersionStepExecutor } from './android.js';
|
|
12
|
-
describe('javaHomeVersionSpec', () => {
|
|
13
|
-
test('Java 8 is asked for as 1.8, not 8', () => {
|
|
14
|
-
expect(javaHomeVersionSpec(8)).toBe('1.8');
|
|
15
|
-
expect(javaHomeVersionSpec('8')).toBe('1.8');
|
|
16
|
-
});
|
|
17
|
-
test('every JDK from 9 up is asked for by its major', () => {
|
|
18
|
-
for (const v of [9, 11, 17, 21, 24, 25]) {
|
|
19
|
-
expect(javaHomeVersionSpec(v)).toBe(String(v));
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
test('the legacy 1.x scheme covers every pre-9 major', () => {
|
|
23
|
-
expect(javaHomeVersionSpec(7)).toBe('1.7');
|
|
24
|
-
expect(javaHomeVersionSpec(6)).toBe('1.6');
|
|
25
|
-
});
|
|
26
|
-
test('a non-numeric version is passed through untouched', () => {
|
|
27
|
-
expect(javaHomeVersionSpec('zulu-8')).toBe('zulu-8');
|
|
28
|
-
expect(javaHomeVersionSpec('')).toBe('');
|
|
29
|
-
});
|
|
30
|
-
});
|
|
31
|
-
describe('set-java-version generates a java_home request that can find Java 8', () => {
|
|
32
|
-
const script = async (javaVersion) => {
|
|
33
|
-
const executor = new SetJavaVersionStepExecutor();
|
|
34
|
-
const step = await executor.execute({ java_version: javaVersion }, { workingDir: '/repo', env: {} }, { artifactsDir: '/ci/artifacts' });
|
|
35
|
-
return step.script;
|
|
36
|
-
};
|
|
37
|
-
test('the generated script maps a pre-9 major onto the 1.x java_home name', async () => {
|
|
38
|
-
const s = await script('8');
|
|
39
|
-
expect(s).toContain('JAVA_HOME_SPEC="1.$JAVA_VERSION"');
|
|
40
|
-
expect(s).toContain('1|2|3|4|5|6|7|8)');
|
|
41
|
-
});
|
|
42
|
-
test('java_home is never asked for the bare major', async () => {
|
|
43
|
-
// This is the whole bug: `-v 8` does not miss, it returns the newest JDK.
|
|
44
|
-
for (const v of ['8', '17', '25']) {
|
|
45
|
-
const s = await script(v);
|
|
46
|
-
expect(s).toContain('java_home -v "$JAVA_HOME_SPEC"');
|
|
47
|
-
expect(s).not.toContain('java_home -v "$JAVA_VERSION"');
|
|
48
|
-
expect(s).not.toContain('java_home -v "${JAVA_VERSION}.*"');
|
|
49
|
-
}
|
|
50
|
-
});
|
|
51
|
-
test('the recovery path also asks by spec, not by bare major', async () => {
|
|
52
|
-
const s = await script('8');
|
|
53
|
-
if (s.includes('REQUESTED_VERSION')) {
|
|
54
|
-
expect(s).not.toContain('java_home -v "${REQUESTED_VERSION}"');
|
|
55
|
-
}
|
|
56
|
-
});
|
|
57
|
-
});
|
|
58
|
-
//# sourceMappingURL=java-home-version-spec.test.js.map
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Linting steps: swiftlint, detekt
|
|
3
|
-
*/
|
|
4
|
-
import { BaseStepExecutor } from './base.js';
|
|
5
|
-
import type { StepDef, CIConfig } from '../../types.js';
|
|
6
|
-
import type { ValidationRequirement, StepOutput } from '../validation-types.js';
|
|
7
|
-
export interface SwiftlintInputs {
|
|
8
|
-
/** Path where SwiftLint should lint */
|
|
9
|
-
linting_path?: string;
|
|
10
|
-
/** Range of linting: all | changed */
|
|
11
|
-
lint_range?: string;
|
|
12
|
-
/** Path to .swiftlint.yml config */
|
|
13
|
-
lint_config_file?: string;
|
|
14
|
-
/** Reporter style (xcode, json, html, junit, etc.) */
|
|
15
|
-
reporter?: string;
|
|
16
|
-
/** Use strict mode (yes/no) */
|
|
17
|
-
strict?: string;
|
|
18
|
-
/** Use quiet mode (yes/no) */
|
|
19
|
-
quiet?: string;
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Runs SwiftLint on the project with config and reporter options.
|
|
23
|
-
*/
|
|
24
|
-
export declare class SwiftlintStepExecutor extends BaseStepExecutor {
|
|
25
|
-
getValidationRequirements(_inputs: SwiftlintInputs, _env: Record<string, string>, _config: CIConfig): ValidationRequirement[];
|
|
26
|
-
getOutputs(): StepOutput[];
|
|
27
|
-
execute(inputs: SwiftlintInputs, _env: Record<string, string>, _config: CIConfig): Promise<StepDef>;
|
|
28
|
-
}
|
|
29
|
-
export interface DetektInputs {
|
|
30
|
-
/** Root directory of the Android project */
|
|
31
|
-
project_location?: string;
|
|
32
|
-
/** Module to run detekt on */
|
|
33
|
-
module?: string;
|
|
34
|
-
/** Report location pattern */
|
|
35
|
-
report_path_pattern?: string;
|
|
36
|
-
/** Additional Gradle arguments */
|
|
37
|
-
arguments?: string;
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* Runs detekt Kotlin static analysis via the Gradle detekt task.
|
|
41
|
-
*/
|
|
42
|
-
export declare class DetektStepExecutor extends BaseStepExecutor {
|
|
43
|
-
getValidationRequirements(_inputs: DetektInputs, _env: Record<string, string>, _config: CIConfig): ValidationRequirement[];
|
|
44
|
-
getOutputs(): StepOutput[];
|
|
45
|
-
execute(inputs: DetektInputs, _env: Record<string, string>, _config: CIConfig): Promise<StepDef>;
|
|
46
|
-
}
|
|
47
|
-
//# sourceMappingURL=linting.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"linting.d.ts","sourceRoot":"","sources":["../../../../src/yaml/steps/linting.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAC7C,OAAO,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AACxD,OAAO,KAAK,EAAE,qBAAqB,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAMhF,MAAM,WAAW,eAAe;IAC9B,uCAAuC;IACvC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,sCAAsC;IACtC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,oCAAoC;IACpC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,sDAAsD;IACtD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,+BAA+B;IAC/B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,8BAA8B;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,qBAAa,qBAAsB,SAAQ,gBAAgB;IACzD,yBAAyB,CACvB,OAAO,EAAE,eAAe,EACxB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAC5B,OAAO,EAAE,QAAQ,GAChB,qBAAqB,EAAE;IAM1B,UAAU,IAAI,UAAU,EAAE;IAOpB,OAAO,CAAC,MAAM,EAAE,eAAe,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,OAAO,CAAC;CA0F1G;AAMD,MAAM,WAAW,YAAY;IAC3B,4CAA4C;IAC5C,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,8BAA8B;IAC9B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,8BAA8B;IAC9B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,kCAAkC;IAClC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,qBAAa,kBAAmB,SAAQ,gBAAgB;IACtD,yBAAyB,CACvB,OAAO,EAAE,YAAY,EACrB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAC5B,OAAO,EAAE,QAAQ,GAChB,qBAAqB,EAAE;IAI1B,UAAU,IAAI,UAAU,EAAE;IAIpB,OAAO,CAAC,MAAM,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,OAAO,CAAC;CAkDvG"}
|
|
@@ -1,148 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Linting steps: swiftlint, detekt
|
|
3
|
-
*/
|
|
4
|
-
import { BaseStepExecutor } from './base.js';
|
|
5
|
-
/**
|
|
6
|
-
* Runs SwiftLint on the project with config and reporter options.
|
|
7
|
-
*/
|
|
8
|
-
export class SwiftlintStepExecutor extends BaseStepExecutor {
|
|
9
|
-
getValidationRequirements(_inputs, _env, _config) {
|
|
10
|
-
return [
|
|
11
|
-
this.requireCommand('swiftlint', 'SwiftLint is required (brew install swiftlint)'),
|
|
12
|
-
];
|
|
13
|
-
}
|
|
14
|
-
getOutputs() {
|
|
15
|
-
return [
|
|
16
|
-
{ name: 'CIBUILD_SWIFTLINT_REPORT', type: 'environment', description: 'The generated SwiftLint report content' },
|
|
17
|
-
{ name: 'CIBUILD_SWIFTLINT_REPORT_PATH', type: 'environment', description: 'Path to the generated SwiftLint report file' },
|
|
18
|
-
];
|
|
19
|
-
}
|
|
20
|
-
async execute(inputs, _env, _config) {
|
|
21
|
-
const stepName = 'swiftlint';
|
|
22
|
-
const lintingPath = this.getInput(inputs, 'linting_path', '.');
|
|
23
|
-
const lintRange = this.getInput(inputs, 'lint_range', 'all');
|
|
24
|
-
const lintConfigFile = this.getInput(inputs, 'lint_config_file', '');
|
|
25
|
-
const reporter = this.getInput(inputs, 'reporter', 'xcode');
|
|
26
|
-
const strict = this.getInput(inputs, 'strict', 'no') === 'yes';
|
|
27
|
-
const quiet = this.getInput(inputs, 'quiet', 'no') === 'yes';
|
|
28
|
-
const commands = [];
|
|
29
|
-
commands.push('# swiftlint — lint Swift code');
|
|
30
|
-
commands.push('echo "🔍 Running SwiftLint..."');
|
|
31
|
-
commands.push('');
|
|
32
|
-
// Navigate to linting path
|
|
33
|
-
commands.push(`LINT_PATH='${this.escapeBash(lintingPath)}'`);
|
|
34
|
-
commands.push('cd "$LINT_PATH"');
|
|
35
|
-
commands.push('');
|
|
36
|
-
// Build swiftlint command
|
|
37
|
-
const flags = [];
|
|
38
|
-
if (lintConfigFile) {
|
|
39
|
-
flags.push(`--config '${this.escapeBash(lintConfigFile)}'`);
|
|
40
|
-
}
|
|
41
|
-
flags.push(`--reporter ${this.escapeBash(reporter)}`);
|
|
42
|
-
if (strict) {
|
|
43
|
-
flags.push('--strict');
|
|
44
|
-
}
|
|
45
|
-
if (quiet) {
|
|
46
|
-
flags.push('--quiet');
|
|
47
|
-
}
|
|
48
|
-
// Handle lint range
|
|
49
|
-
if (lintRange === 'changed') {
|
|
50
|
-
commands.push('# Lint only changed files');
|
|
51
|
-
commands.push('CHANGED_FILES=$(git diff --name-only --diff-filter=d HEAD | grep "\\.swift$" || true)');
|
|
52
|
-
commands.push('if [ -z "$CHANGED_FILES" ]; then');
|
|
53
|
-
commands.push(' echo "No changed Swift files to lint"');
|
|
54
|
-
commands.push(' exit 0');
|
|
55
|
-
commands.push('fi');
|
|
56
|
-
commands.push('');
|
|
57
|
-
}
|
|
58
|
-
// Determine report file extension
|
|
59
|
-
commands.push('# Determine report file name');
|
|
60
|
-
const extMap = {
|
|
61
|
-
json: 'json', html: 'html', junit: 'xml', csv: 'csv',
|
|
62
|
-
checkstyle: 'xml', sonarqube: 'json', markdown: 'md',
|
|
63
|
-
};
|
|
64
|
-
const reportExt = extMap[reporter] || 'txt';
|
|
65
|
-
commands.push(`REPORT_FILE="swiftlint_report.${reportExt}"`);
|
|
66
|
-
commands.push('REPORT_DIR="${CIBUILD_DEPLOY_DIR:-./artifacts}"');
|
|
67
|
-
commands.push('mkdir -p "$REPORT_DIR"');
|
|
68
|
-
commands.push('REPORT_PATH="$REPORT_DIR/$REPORT_FILE"');
|
|
69
|
-
commands.push('');
|
|
70
|
-
// Run swiftlint
|
|
71
|
-
const flagStr = flags.join(' ');
|
|
72
|
-
if (lintRange === 'changed') {
|
|
73
|
-
commands.push(`echo "$CHANGED_FILES" | while IFS= read -r file; do`);
|
|
74
|
-
commands.push(` swiftlint lint ${flagStr} --path "$file"`);
|
|
75
|
-
commands.push('done | tee "$REPORT_PATH"');
|
|
76
|
-
}
|
|
77
|
-
else {
|
|
78
|
-
commands.push(`swiftlint lint ${flagStr} | tee "$REPORT_PATH"`);
|
|
79
|
-
}
|
|
80
|
-
commands.push('LINT_EXIT=${PIPESTATUS[0]}');
|
|
81
|
-
commands.push('');
|
|
82
|
-
// Export outputs
|
|
83
|
-
commands.push('# Export report');
|
|
84
|
-
commands.push('REPORT_CONTENT=$(cat "$REPORT_PATH" 2>/dev/null || echo "")');
|
|
85
|
-
commands.push('envman add --key CIBUILD_SWIFTLINT_REPORT --value "$REPORT_CONTENT"');
|
|
86
|
-
commands.push('envman add --key CIBUILD_SWIFTLINT_REPORT_PATH --value "$REPORT_PATH"');
|
|
87
|
-
commands.push('');
|
|
88
|
-
commands.push('if [ "$LINT_EXIT" -ne 0 ]; then');
|
|
89
|
-
commands.push(' echo "⚠️ SwiftLint found issues (exit code: $LINT_EXIT)"');
|
|
90
|
-
commands.push(' exit "$LINT_EXIT"');
|
|
91
|
-
commands.push('fi');
|
|
92
|
-
commands.push('echo "✅ SwiftLint passed"');
|
|
93
|
-
const script = this.createBashScriptFromCommands(commands, stepName);
|
|
94
|
-
return this.createScriptStep(script, stepName);
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
/**
|
|
98
|
-
* Runs detekt Kotlin static analysis via the Gradle detekt task.
|
|
99
|
-
*/
|
|
100
|
-
export class DetektStepExecutor extends BaseStepExecutor {
|
|
101
|
-
getValidationRequirements(_inputs, _env, _config) {
|
|
102
|
-
return [];
|
|
103
|
-
}
|
|
104
|
-
getOutputs() {
|
|
105
|
-
return [];
|
|
106
|
-
}
|
|
107
|
-
async execute(inputs, _env, _config) {
|
|
108
|
-
const stepName = 'detekt';
|
|
109
|
-
const projectLocation = this.getInput(inputs, 'project_location', '.');
|
|
110
|
-
const module = this.getInput(inputs, 'module', '');
|
|
111
|
-
const reportPathPattern = this.getInput(inputs, 'report_path_pattern', '*/build/reports/detekt/detekt*.html');
|
|
112
|
-
const extraArguments = this.getInput(inputs, 'arguments', '');
|
|
113
|
-
const commands = [];
|
|
114
|
-
commands.push('# detekt — Kotlin static analysis');
|
|
115
|
-
commands.push('echo "🔍 Running detekt..."');
|
|
116
|
-
commands.push('');
|
|
117
|
-
commands.push(`cd '${this.escapeBash(projectLocation)}'`);
|
|
118
|
-
commands.push('');
|
|
119
|
-
// Verify gradlew exists
|
|
120
|
-
commands.push('if [ ! -f "./gradlew" ]; then');
|
|
121
|
-
commands.push(' echo "❌ Error: gradlew not found in project directory"');
|
|
122
|
-
commands.push(' exit 1');
|
|
123
|
-
commands.push('fi');
|
|
124
|
-
commands.push('chmod +x ./gradlew');
|
|
125
|
-
commands.push('');
|
|
126
|
-
// Build detekt task name
|
|
127
|
-
let task = 'detekt';
|
|
128
|
-
if (module) {
|
|
129
|
-
task = `:${module}:detekt`;
|
|
130
|
-
}
|
|
131
|
-
const args = extraArguments ? ` ${extraArguments}` : '';
|
|
132
|
-
commands.push(`echo "Running: ./gradlew ${task}${args}"`);
|
|
133
|
-
commands.push(`./gradlew ${task}${args}`);
|
|
134
|
-
commands.push('');
|
|
135
|
-
// Show report location
|
|
136
|
-
commands.push('# Find report files');
|
|
137
|
-
commands.push(`REPORTS=$(find . -path '${this.escapeBash(reportPathPattern)}' 2>/dev/null || true)`);
|
|
138
|
-
commands.push('if [ -n "$REPORTS" ]; then');
|
|
139
|
-
commands.push(' echo "📄 Detekt reports:"');
|
|
140
|
-
commands.push(' echo "$REPORTS"');
|
|
141
|
-
commands.push('fi');
|
|
142
|
-
commands.push('');
|
|
143
|
-
commands.push('echo "✅ detekt analysis complete"');
|
|
144
|
-
const script = this.createBashScriptFromCommands(commands, stepName);
|
|
145
|
-
return this.createScriptStep(script, stepName);
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
//# sourceMappingURL=linting.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"phase2.test.d.ts","sourceRoot":"","sources":["../../../../src/yaml/steps/phase2.test.ts"],"names":[],"mappings":"AAAA;;;GAGG"}
|