Fix class condition in SiteMainNav.svelte #36
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: Run tests | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
run-tests: | |
strategy: | |
matrix: | |
test: [unit, e2e] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
- name: Setup pnpm | |
uses: pnpm/action-setup@v2 | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: lts/* | |
cache: pnpm | |
- name: Install Repository dependencies | |
run: pnpm install | |
- name: Cache Playwright dependencies | |
if: matrix.test == 'e2e' | |
uses: actions/cache@v3 | |
with: | |
path: ~/.cache/ms-playwright/ | |
key: ${{ runner.os }}-playwright-${{ hashFiles('**/pnpm-lock.yaml') }} | |
restore-keys: | | |
${{ runner.os }}-playwright- | |
- name: Install Playwright dependencies | |
if: matrix.test == 'e2e' | |
run: pnpm exec playwright install --with-deps chromium | |
- name: 🏄 Copy test env vars | |
if: matrix.test == 'e2e' | |
run: cp .env.example .env | |
- name: Run ${{ matrix.test }} tests | |
run: pnpm run test:${{ matrix.test }} |