-
Notifications
You must be signed in to change notification settings - Fork 63
47 lines (42 loc) · 1.24 KB
/
tests.yml
File metadata and controls
47 lines (42 loc) · 1.24 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: Tests
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the main and release branches
push:
branches:
- main
- release/*
- v*/dev
# Triggers the workflow on push or pull request events but only for the main and release branches
pull_request:
branches:
- main
- release/*
- v*/dev
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
env:
NODE_OPTIONS: --max_old_space_size=16384
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Use Node.js
uses: actions/setup-node@v6
with:
node-version-file: .nvmrc
check-latest: true
cache: 'npm'
- run: npm install
- run: npm run lint
- run: npm run build
- name: Install Playwright browsers
run: npx playwright install --with-deps chromium firefox webkit
- run: npm test
- name: Check for uncommitted changes
run: |
git diff --name-only --exit-code || {
echo "::error::The files listed above were modified during CI. Run 'npm run build' locally and commit the updated files."
exit 1
}