fix: re-enable code challenge support #805
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: tests | |
on: | |
push: | |
branches-ignore: [main] | |
workflow_dispatch: | |
jobs: | |
yarn-lockfile-check: | |
uses: salesforcecli/github-workflows/.github/workflows/lockFileCheck.yml@main | |
# Since the Windows unit tests take much longer, we run the linux unit tests first and then run the windows unit tests in parallel with NUTs | |
linux-unit-tests: | |
needs: yarn-lockfile-check | |
uses: salesforcecli/github-workflows/.github/workflows/unitTestsLinux.yml@main | |
windows-unit-tests: | |
needs: linux-unit-tests | |
uses: salesforcecli/github-workflows/.github/workflows/unitTestsWindows.yml@main | |
xNuts: | |
needs: linux-unit-tests | |
uses: salesforcecli/github-workflows/.github/workflows/externalNut.yml@main | |
strategy: | |
fail-fast: false | |
matrix: | |
os: ['ubuntu-latest', 'windows-latest'] | |
externalProjectGitUrl: | |
- https://github.com/salesforcecli/plugin-apex | |
- https://github.com/salesforcecli/plugin-auth | |
- https://github.com/salesforcecli/plugin-community | |
- https://github.com/salesforcecli/plugin-custom-metadata | |
- https://github.com/salesforcecli/plugin-data | |
- https://github.com/salesforcecli/plugin-limits | |
- https://github.com/salesforcecli/plugin-org | |
- https://github.com/salesforcecli/plugin-schema | |
- https://github.com/salesforcecli/plugin-settings | |
- https://github.com/salesforcecli/plugin-signups | |
- https://github.com/salesforcecli/plugin-templates | |
- https://github.com/salesforcecli/plugin-user | |
with: | |
packageName: '@salesforce/core' | |
externalProjectGitUrl: ${{ matrix.externalProjectGitUrl }} | |
command: 'yarn test:nuts' | |
os: ${{ matrix.os }} | |
useCache: false | |
preSwapCommands: 'yarn upgrade jsforce@beta; npx yarn-deduplicate; yarn install' | |
preExternalBuildCommands: 'shx rm -rf node_modules/@salesforce/core/node_modules/jsforce shx rm -rf node_modules/@salesforce/sf-plugins-core/node_modules/@salesforce/core node_modules/@salesforce/cli-plugins-testkit/node_modules/@salesforce/core node_modules/@salesforce/source-tracking/node_modules/@salesforce/core node_modules/@salesforce/source-deploy-retrieve/node_modules/@salesforce/core node_modules/@salesforce/apex-node/node_modules/@salesforce/core' | |
secrets: inherit | |
# hidden until we fix source-testkit to better handle jwt | |
pdrNuts: | |
needs: linux-unit-tests | |
uses: salesforcecli/github-workflows/.github/workflows/externalNut.yml@main | |
strategy: | |
fail-fast: false | |
matrix: | |
os: ['ubuntu-latest', 'windows-latest'] | |
command: | |
- 'yarn test:nuts:convert' | |
- 'yarn test:nuts:deb' | |
- 'yarn test:nuts:delete' | |
- 'yarn test:nuts:deploy:metadata:manifest' | |
- 'yarn test:nuts:deploy:metadata:metadata' | |
- 'yarn test:nuts:deploy:metadata:metadata-dir' | |
- 'yarn test:nuts:deploy:metadata:source-dir' | |
- 'yarn test:nuts:deploy:metadata:test-level' | |
- 'yarn test:nuts:destructive' | |
- 'yarn test:nuts:manifest' | |
- 'yarn test:nuts:retrieve' | |
- 'yarn test:nuts:specialTypes' | |
- 'yarn test:nuts:static' | |
- 'yarn test:nuts:tracking' | |
with: | |
packageName: '@salesforce/core' | |
externalProjectGitUrl: 'https://github.com/salesforcecli/plugin-deploy-retrieve' | |
preSwapCommands: 'yarn upgrade jsforce@beta; npx yarn-deduplicate; yarn install' | |
command: ${{ matrix.command }} | |
os: ${{ matrix.os }} | |
preExternalBuildCommands: 'shx rm -rf node_modules/@salesforce/core/node_modules/jsforce shx rm -rf node_modules/@salesforce/sf-plugins-core/node_modules/@salesforce/core node_modules/@salesforce/cli-plugins-testkit/node_modules/@salesforce/core node_modules/@salesforce/source-tracking/node_modules/@salesforce/core node_modules/@salesforce/source-deploy-retrieve/node_modules/@salesforce/core' | |
secrets: | |
TESTKIT_AUTH_URL: ${{ secrets.TESTKIT_AUTH_URL }} |