Skip to content

Merge pull request #1 from mr-wildcard/renovate/all-minor-patch #2

Merge pull request #1 from mr-wildcard/renovate/all-minor-patch

Merge pull request #1 from mr-wildcard/renovate/all-minor-patch #2

Workflow file for this run

name: E2E Tests
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
paths:
- "public/**"
- "src/**"
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- uses: pnpm/action-setup@v2
with:
run_install: false
- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v4
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install
- name: Install Playwright Browsers
run: pnpm exec playwright install --with-deps
- name: Build application for tests
run: pnpm build --site http://localhost:4321/
- name: Run e2e tests
run: pnpm test:e2e
- uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30