-
Notifications
You must be signed in to change notification settings - Fork 15
34 lines (34 loc) · 829 Bytes
/
test.yaml
File metadata and controls
34 lines (34 loc) · 829 Bytes
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
---
name: "Run Tests"
on:
push:
branches:
- "main"
pull_request:
branches:
- "*"
jobs:
test:
name: "Run Tests"
runs-on: "depot-ubuntu-24.04-4"
steps:
- uses: "actions/checkout@v6"
with:
lfs: true
submodules: true
- uses: "actions/setup-node@v6"
with:
node-version: 24
cache-dependency-path: "yarn.lock"
cache: "yarn"
- uses: "bahmutov/npm-install@v1"
- name: "Install chromium for playwright"
run: "yarn test:install-chromium-headless"
- name: "Run tests"
run: "yarn test"
- name: "Upload test artifacts"
if: "failure()"
uses: "actions/upload-artifact@v4"
with:
name: "test-screenshots"
path: "src/tests/browser/__screenshots__"