Merge branch 'main' into mdonnalley/esm-support #547
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 | |
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 | |
node14: | |
needs: linux-unit-tests | |
strategy: | |
matrix: | |
os: ["ubuntu-latest", "windows-latest"] | |
node_version: [14.x] | |
fail-fast: false | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node_version }} | |
cache: yarn | |
- run: yarn install | |
- run: yarn build | |
- run: yarn test | |
e2e: | |
needs: linux-unit-tests | |
strategy: | |
matrix: | |
os: ["ubuntu-latest", "windows-latest"] | |
node_version: [lts/-1, lts/*, latest] | |
exclude: | |
- os: windows-latest | |
node_version: lts/* | |
- os: windows-latest | |
node_version: lts/-1 | |
fail-fast: false | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node_version }} | |
cache: yarn | |
- run: yarn install --network-timeout 600000 | |
- run: yarn build | |
- run: yarn test:e2e | |
esm-cjs-interop: | |
needs: linux-unit-tests | |
strategy: | |
matrix: | |
os: ["ubuntu-latest", "windows-latest"] | |
node_version: [lts/-1, lts/*, latest] | |
exclude: | |
- os: windows-latest | |
node_version: lts/* | |
- os: windows-latest | |
node_version: lts/-1 | |
fail-fast: false | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 60 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node_version }} | |
cache: yarn | |
- run: yarn install --network-timeout 600000 | |
- run: yarn build | |
- run: yarn test:esm-cjs | |
nuts: | |
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-auth | |
- https://github.com/salesforcecli/plugin-data | |
- https://github.com/salesforcecli/plugin-org | |
- https://github.com/salesforcecli/plugin-schema | |
- https://github.com/salesforcecli/plugin-user | |
with: | |
packageName: "@oclif/core" | |
externalProjectGitUrl: ${{ matrix.externalProjectGitUrl }} | |
command: "yarn test:nuts" | |
os: ${{ matrix.os }} | |
useCache: false | |
preSwapCommands: "npx yarn-deduplicate; yarn install" | |
preExternalBuildCommands: "shx rm -rf node_modules/@salesforce/sf-plugins-core/node_modules/@oclif/core" | |
secrets: | |
TESTKIT_AUTH_URL: ${{ secrets.TESTKIT_AUTH_URL }} | |
TESTKIT_HUB_USERNAME: ${{ secrets.TESTKIT_HUB_USERNAME }} | |
TESTKIT_JWT_CLIENT_ID: ${{ secrets.TESTKIT_JWT_CLIENT_ID }} | |
TESTKIT_JWT_KEY: ${{ secrets.TESTKIT_JWT_KEY }} | |
TESTKIT_HUB_INSTANCE: ${{ secrets.TESTKIT_HUB_INSTANCE }} |