Skip to content

Commit 5080622

Browse files
authored
Merge pull request #78 from salesforcecli/sync-circleci-config
chore: sync .circleci/config.yml
2 parents 551e631 + 4def72b commit 5080622

File tree

1 file changed

+45
-1
lines changed

1 file changed

+45
-1
lines changed

.circleci/config.yml

Lines changed: 45 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,41 @@
11
version: 2.1
22
orbs:
33
release-management: salesforce/npm-release-management@4
4+
parameters:
5+
run-auto-workflows:
6+
description: >
7+
Boolean that controls when an workflow would run.
8+
9+
It is used to gate which workflows should run when github events occur.
10+
11+
This parameter is used by automation to determine if a workflow will run
12+
within a pipeline.
13+
default: true
14+
type: boolean
15+
run-just-nuts:
16+
description: >
17+
Boolean that controls when the just-nuts will run.
18+
19+
Default value is false and this parameter is used by automation to
20+
determine if
21+
22+
the just-nuts workflow will run.
23+
default: false
24+
type: boolean
25+
sfdx_version:
26+
description: |
27+
By default, the latest version of the standalone CLI will be installed.
28+
To install via npm, supply a version tag such as "latest" or "6".
29+
default: ''
30+
type: string
31+
repo_tag:
32+
description: 'The tag of the module repo to checkout, '''' defaults to branch/PR'
33+
default: ''
34+
type: string
435
workflows:
536
version: 2
637
test-and-release:
38+
when: << pipeline.parameters.run-auto-workflows >>
739
jobs:
840
- release-management/validate-pr:
941
filters:
@@ -55,4 +87,16 @@ workflows:
5587
- main
5688
jobs:
5789
- release-management/test-ts-update
58-
90+
just-nuts:
91+
when: << pipeline.parameters.run-just-nuts >>
92+
jobs:
93+
- release-management/test-nut:
94+
name: just-nuts-<< matrix.os >>
95+
sfdx_version: << pipeline.parameters.sfdx_version >>
96+
sfdx_executable_path: sfdx
97+
repo_tag: << pipeline.parameters.repo_tag >>
98+
matrix:
99+
parameters:
100+
os:
101+
- linux
102+
- windows

0 commit comments

Comments
 (0)