Merge b9200a1764c3d03e81df36be241ac528dab51cf5 into sapling-pr-archiv… #274
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: Playwright Tests | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
on: | |
pull_request: | |
paths: | |
- "app/**" | |
- "public/**" | |
- "test/**" | |
- ".dockerignore" | |
- "bun.lock" | |
- "Dockerfile" | |
- "package.json" | |
- "*config.*" | |
push: | |
paths: | |
- "app/**" | |
- "public/**" | |
- "test/**" | |
- ".dockerignore" | |
- "bun.lock" | |
- "Dockerfile" | |
- "package.json" | |
- "*config.*" | |
workflow_dispatch: | |
jobs: | |
test: | |
timeout-minutes: 30 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: ${{ env.SHA }} | |
env: | |
SHA: ${{ github.event.pull_request.head.sha || github.sha }} | |
- name: Install bun | |
uses: oven-sh/setup-bun@v2 | |
with: | |
bun-version: canary | |
- name: Install dependencies | |
run: bun i | |
- name: Build app | |
run: bun run build | |
- name: Install Playwright Browsers | |
run: bunx playwright install --with-deps | |
- name: Run Playwright tests | |
run: bunx playwright test | |
- uses: actions/upload-artifact@v4 | |
if: ${{ !cancelled() }} | |
with: | |
name: playwright-report | |
path: playwright-report/ | |
retention-days: 30 |