33name : tests
44on :
55 push :
6- paths-ignore :
7- - ' test/nuts/perfResults/**'
86 branches-ignore : [main]
97 workflow_dispatch :
108
1816 windows-unit-tests :
1917 needs : linux-unit-tests
2018 uses : salesforcecli/github-workflows/.github/workflows/unitTestsWindows.yml@main
19+
2120 nuts :
2221 needs : linux-unit-tests
2322 uses : salesforcecli/github-workflows/.github/workflows/nut.yml@main
@@ -29,55 +28,15 @@ jobs:
2928 with :
3029 os : ${{ matrix.os }}
3130
32- perf-scale-nuts-linux :
33- uses : ./.github/workflows/perfScaleNut.yml
34- needs : nuts
35- perf-scale-nuts-windows :
36- uses : ./.github/workflows/perfScaleNut.yml
37- needs : nuts
38- with :
39- os : ' windows-latest'
40-
41- # run a quick nut on each OS to populate the cache
42- # the following is highly duplicative to allow linux to start all the nuts without waiting for windows primer
43- extNuts-primer-linux :
44- name : extNUTs-linux-prime
45- needs : nuts
46- uses : salesforcecli/github-workflows/.github/workflows/externalNut.yml@main
47- with :
48- packageName : ' @salesforce/source-deploy-retrieve'
49- externalProjectGitUrl : ' https://github.com/salesforcecli/plugin-source'
50- command : ' yarn test:nuts:manifest:create'
51- preBuildCommands : ' shx rm -rf node_modules/@salesforce/kit; shx rm -rf node_modules/@typescript-eslint; shx rm -rf node_modules/eslint-plugin-header; shx rm -rf node_modules/eslint-plugin-import; shx rm -rf node_modules/eslint-plugin-jsdoc; shx rm -rf node_modules/eslint-plugin-prettier'
52- postbuildCommands : ' cp src/registry/metadataRegistry.json lib/src/registry'
53- preExternalBuildCommands : ' shx rm -rf node_modules/@salesforce/source-tracking/node_modules/@salesforce/source-deploy-retrieve'
54- os : ' ubuntu-latest'
55- secrets : inherit
56-
57- extNuts-primer-windows :
58- name : extNUTs-windows-prime
59- needs : nuts
60- uses : salesforcecli/github-workflows/.github/workflows/externalNut.yml@main
61- with :
62- packageName : ' @salesforce/source-deploy-retrieve'
63- externalProjectGitUrl : ' https://github.com/salesforcecli/plugin-source'
64- command : ' yarn test:nuts:manifest:create'
65- preBuildCommands : ' shx rm -rf node_modules/@salesforce/kit; shx rm -rf node_modules/@typescript-eslint; shx rm -rf node_modules/eslint-plugin-header; shx rm -rf node_modules/eslint-plugin-import; shx rm -rf node_modules/eslint-plugin-jsdoc; shx rm -rf node_modules/eslint-plugin-prettier'
66- postbuildCommands : ' cp src/registry/metadataRegistry.json lib/src/registry'
67- preExternalBuildCommands : ' shx rm -rf node_modules/@salesforce/source-tracking/node_modules/@salesforce/source-deploy-retrieve'
68- os : ' windows-latest'
69- secrets : inherit
70-
71- # now run the rest of the nuts for each os via cached version of al the setup steps
72- external-nuts-full-linux :
73- needs : [perf-scale-nuts-linux, extNuts-primer-linux]
74- name : extNUTs-linux
31+ xNuts-ps :
32+ needs : linux-unit-tests
33+ name : xNuts-ps
7534 strategy :
7635 fail-fast : false
7736 matrix :
37+ os : [ubuntu-latest, windows-latest]
7838 command :
79- - ' yarn test:nuts:convert'
80- - ' yarn test:nuts:delete'
39+ - ' yarn test:nuts:deb'
8140 - ' yarn test:nuts:deploy:async'
8241 - ' yarn test:nuts:deploy:destructive'
8342 - ' yarn test:nuts:deploy:manifest'
@@ -95,43 +54,42 @@ jobs:
9554 packageName : ' @salesforce/source-deploy-retrieve'
9655 externalProjectGitUrl : ' https://github.com/salesforcecli/plugin-source'
9756 command : ${{matrix.command}}
98- # the next 3 lines are likely unnecessary due to cache use
9957 preBuildCommands : ' shx rm -rf node_modules/@salesforce/kit; shx rm -rf node_modules/@typescript-eslint; shx rm -rf node_modules/eslint-plugin-header; shx rm -rf node_modules/eslint-plugin-import; shx rm -rf node_modules/eslint-plugin-jsdoc; shx rm -rf node_modules/eslint-plugin-prettier'
10058 postbuildCommands : ' cp src/registry/metadataRegistry.json lib/src/registry'
10159 preExternalBuildCommands : ' shx rm -rf node_modules/@salesforce/source-tracking/node_modules/@salesforce/source-deploy-retrieve'
102- os : ubuntu-latest
60+ os : ${{matrix.os}}
61+ useCache : false
10362 secrets : inherit
10463
105- # now run the rest of the nuts for each os via cached version of all the setup steps
106- external-nuts-full-windows :
107- needs : [perf-scale-nuts-windows, extNuts-primer-windows]
108- name : extNUTs-windows
64+ xNuts-pdr :
65+ needs : linux-unit-tests
10966 strategy :
11067 fail-fast : false
11168 matrix :
69+ os : [ubuntu-latest, windows-latest]
11270 command :
11371 - ' yarn test:nuts:convert'
72+ - ' yarn test:nuts:deb'
11473 - ' yarn test:nuts:delete'
115- - ' yarn test:nuts:deploy:async'
116- - ' yarn test:nuts:deploy:destructive'
117- - ' yarn test:nuts:deploy:manifest'
118- - ' yarn test:nuts:deploy:metadata'
119- - ' yarn test:nuts:deploy:quick'
120- - ' yarn test:nuts:deploy:rest'
121- - ' yarn test:nuts:deploy:sourcepath'
122- - ' yarn test:nuts:deploy:testlevel'
123- - ' yarn test:nuts:mdapi'
74+ - ' yarn test:nuts:deploy:metadata:manifest'
75+ - ' yarn test:nuts:deploy:metadata:metadata'
76+ - ' yarn test:nuts:deploy:metadata:metadata-dir'
77+ - ' yarn test:nuts:deploy:metadata:source-dir'
78+ - ' yarn test:nuts:deploy:metadata:test-level'
79+ - ' yarn test:nuts:destructive'
80+ - ' yarn test:nuts:manifest'
12481 - ' yarn test:nuts:retrieve'
12582 - ' yarn test:nuts:specialTypes'
83+ - ' yarn test:nuts:static'
12684 - ' yarn test:nuts:tracking'
12785 uses : salesforcecli/github-workflows/.github/workflows/externalNut.yml@main
12886 with :
12987 packageName : ' @salesforce/source-deploy-retrieve'
130- externalProjectGitUrl : ' https://github.com/salesforcecli/plugin-source '
88+ externalProjectGitUrl : ' https://github.com/salesforcecli/plugin-deploy-retrieve '
13189 command : ${{matrix.command}}
132- # the next 3 lines are likely unnecessary due to cache use
13390 preBuildCommands : ' shx rm -rf node_modules/@salesforce/kit; shx rm -rf node_modules/@typescript-eslint; shx rm -rf node_modules/eslint-plugin-header; shx rm -rf node_modules/eslint-plugin-import; shx rm -rf node_modules/eslint-plugin-jsdoc; shx rm -rf node_modules/eslint-plugin-prettier'
13491 postbuildCommands : ' cp src/registry/metadataRegistry.json lib/src/registry'
13592 preExternalBuildCommands : ' shx rm -rf node_modules/@salesforce/source-tracking/node_modules/@salesforce/source-deploy-retrieve'
136- os : windows-latest
93+ os : ${{matrix.os}}
94+ useCache : false
13795 secrets : inherit
0 commit comments