Skip to content

feat: e2e dev preview tests #1166

feat: e2e dev preview tests

feat: e2e dev preview tests #1166

Workflow file for this run

name: tests

Check failure on line 1 in .github/workflows/test.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/test.yml

Invalid workflow file

(Line: 36, Col: 9): Unexpected value 'needs', (Line: 38, Col: 9): Unexpected value 'secrets', (Line: 39, Col: 9): Unexpected value 'strategy', (Line: 32, Col: 5): Required property is missing: runs-on
on:
push:
branches-ignore:
- main
- '2*-patch'
workflow_dispatch:
jobs:
check-versions:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'yarn'
- run: yarn install --frozen-lockfile
- run: node .husky/check-versions.js
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
with:
skipTsDepCheck: false
windows-unit-tests:
needs: linux-unit-tests
uses: salesforcecli/github-workflows/.github/workflows/unitTestsWindows.yml@main
nuts:
steps:
- name: Install Playwright Browsers
run: yarn playwright install --with-deps
- name: Run nuts tests
needs: linux-unit-tests
uses: salesforcecli/github-workflows/.github/workflows/nut.yml@main
secrets: inherit
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
fail-fast: false
with:
os: ${{ matrix.os }}