-
Notifications
You must be signed in to change notification settings - Fork 2
51 lines (42 loc) · 1.4 KB
/
test-e2e.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Only handles running e2e tests in Playwright. Runs outside devbox since devbox
# and playwright don't play well together.
name: test-e2e
# As recommended by Graphite
# (https://graphite.dev/docs/github-configuration-guidelines#github-actions)
on:
pull_request:
types: [opened, synchronize, reopened]
push:
branches: [main]
# Cancel in-progress jobs for the same work
# (https://graphite.dev/docs/troubleshooting#why-are-my-actions-running-twice)
concurrency:
group: test-e2e-${{ github.repository }}-${{ github.workflow }}-${{ github.ref }}-${{ github.ref == 'refs/heads/main' && github.sha || ''}}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
# no version specified (uses version in packageManager field in
# package.json)
run_install: false
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20.11.1
cache: "pnpm"
- name: Install dependencies
run: pnpm install
- name: Validate and Build
run: pnpm exec turbo run test:e2e
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: playwright-report
path: "**/playwright-report/"
retention-days: 30