chore: update actions #484
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: Unit tests | |
on: | |
push: | |
branches-ignore: [main] | |
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 | |
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/testEsbuild.js | |
xNuts: | |
needs: linux-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 |