feat: add support for multiple test categories in a single test run #691
Workflow file for this run
This file contains hidden or 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] | |
| jobs: | |
| unit-tests: | |
| uses: salesforcecli/github-workflows/.github/workflows/unitTest.yml@main | |
| test-bundle: | |
| runs-on: ubuntu-latest | |
| name: test bundling | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: lts/* | |
| cache: yarn | |
| - uses: salesforcecli/github-workflows/.github/actions/yarnInstallWithRetries@main | |
| - name: Build the project | |
| run: yarn build | |
| - name: check if bundling runs into failures | |
| run: node scripts/esbuild.config.mjs | |
| xNuts: | |
| needs: unit-tests | |
| name: external NUTs | |
| uses: salesforcecli/github-workflows/.github/workflows/externalNut.yml@main | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: ['ubuntu-latest', 'windows-latest'] | |
| with: | |
| packageName: '@salesforce/apex-node' | |
| externalProjectGitUrl: 'https://github.com/salesforcecli/plugin-apex' | |
| ignoreScripts: true | |
| os: ${{ matrix.os }} | |
| preSwapCommands: 'yarn upgrade @salesforce/core; npx yarn-deduplicate; yarn install' | |
| preBuildCommands: 'shx rm -rf node_modules/@salesforce/core; shx rm -rf node_modules/@jsforce/jsforce-node' | |
| preExternalBuildCommands: 'npm why @salesforce/core --json' | |
| useCache: false | |
| secrets: inherit |