|
| 1 | +version: 2.1 |
| 2 | +orbs: |
| 3 | + release-management: salesforce/npm-release-management@4 |
| 4 | +workflows: |
| 5 | + version: 2 |
| 6 | + test-and-release: |
| 7 | + jobs: |
| 8 | + - release-management/validate-pr: |
| 9 | + filters: |
| 10 | + branches: |
| 11 | + ignore: main |
| 12 | + release-management/test-package: |
| 13 | + matrix: |
| 14 | + parameters: |
| 15 | + os: |
| 16 | + - linux |
| 17 | + - windows |
| 18 | + node_version: |
| 19 | + - latest |
| 20 | + - lts |
| 21 | + - maintenance |
| 22 | + exclude: |
| 23 | + - os: windows |
| 24 | + node_version: lts |
| 25 | + - os: windows |
| 26 | + node_version: maintenance |
| 27 | + - release-management/test-package: |
| 28 | + matrix: |
| 29 | + parameters: |
| 30 | + os: |
| 31 | + - linux |
| 32 | + - windows |
| 33 | + node_version: |
| 34 | + - latest |
| 35 | + - lts |
| 36 | + - maintenance |
| 37 | + exclude: |
| 38 | + - os: windows |
| 39 | + node_version: lts |
| 40 | + - os: windows |
| 41 | + node_version: maintenance |
| 42 | + - release-management/release-package: |
| 43 | + sign: true |
| 44 | + github-release: true |
| 45 | + requires: |
| 46 | + - release-management/test-package |
| 47 | + filters: |
| 48 | + branches: |
| 49 | + only: main |
| 50 | + when: << pipeline.parameters.run-auto-workflows >> |
| 51 | + test-ts-update: |
| 52 | + triggers: |
| 53 | + - schedule: |
| 54 | + cron: 0 0 * * * |
| 55 | + filters: |
| 56 | + branches: |
| 57 | + only: |
| 58 | + - main |
| 59 | + jobs: |
| 60 | + - release-management/test-ts-update |
| 61 | + just-nuts: |
| 62 | + when: << pipeline.parameters.run-just-nuts >> |
| 63 | + jobs: |
| 64 | + - release-management/test-nut: |
| 65 | + name: just-nuts-<< matrix.os >> |
| 66 | + sfdx_version: << pipeline.parameters.sfdx_version >> |
| 67 | + sfdx_executable_path: sfdx |
| 68 | + repo_tag: << pipeline.parameters.repo_tag >> |
| 69 | + matrix: |
| 70 | + parameters: |
| 71 | + os: |
| 72 | + - linux |
| 73 | + - windows |
| 74 | +parameters: |
| 75 | + run-auto-workflows: |
| 76 | + description: > |
| 77 | + Boolean that controls when an workflow would run. |
| 78 | +
|
| 79 | + It is used to gate which workflows should run when github events occur. |
| 80 | +
|
| 81 | + This parameter is used by automation to determine if a workflow will run |
| 82 | + within a pipeline. |
| 83 | + default: true |
| 84 | + type: boolean |
| 85 | + run-just-nuts: |
| 86 | + description: > |
| 87 | + Boolean that controls when the just-nuts will run. |
| 88 | +
|
| 89 | + Default value is false and this parameter is used by automation to |
| 90 | + determine if |
| 91 | +
|
| 92 | + the just-nuts workflow will run. |
| 93 | + default: false |
| 94 | + type: boolean |
| 95 | + sfdx_version: |
| 96 | + description: | |
| 97 | + By default, the latest version of the standalone CLI will be installed. |
| 98 | + To install via npm, supply a version tag such as "latest" or "6". |
| 99 | + default: '' |
| 100 | + type: string |
| 101 | + repo_tag: |
| 102 | + description: 'The tag of the module repo to checkout, '''' defaults to branch/PR' |
| 103 | + default: '' |
| 104 | + type: string |
0 commit comments