-
Notifications
You must be signed in to change notification settings - Fork 56
47 lines (38 loc) · 1.04 KB
/
test-e2e.yml
File metadata and controls
47 lines (38 loc) · 1.04 KB
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
name: Test
on:
pull_request:
branches:
- main
permissions:
contents: read
jobs:
e2e:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v6
- name: Set up Node.js
uses: actions/setup-node@v6
with:
node-version: 24
- name: Install Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: 1.3.11
- name: Cache Bun dependencies
uses: actions/cache@v5
with:
path: ~/.bun/install/cache
key: ${{ runner.os }}-bun-${{ hashFiles('bun.lock') }}
restore-keys: |
${{ runner.os }}-bun-
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Install Playwright browsers
run: bunx playwright install --with-deps chromium
- name: Run e2e tests
env:
TZ: Etc/UTC
COMPASS_PUBLIC_GOOGLE_CLIENT_ID: test-client-id
COMPASS_PUBLIC_API_BASEURL: http://localhost:3000/api
run: bun run test:e2e