-
Notifications
You must be signed in to change notification settings - Fork 6
41 lines (37 loc) · 1.29 KB
/
tests.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
name: Build and Test
on: [push]
jobs:
build:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v4
- name: Use Node.js latest
uses: actions/setup-node@v4
with:
# hard code until this bug is fixed with Node 22: https://github.com/nodejs/node/issues/52682
node-version: 21
- name: install
run: |
npm clean-install
npx playwright install
- name: check formatting
run: |
npm run prettier:check
- name: build
run: |
npm run clean
npm run build
- name: test
run: |
npm test
- name: check repo is clean
# skip this check in windows for now, as the build outputs may get slightly modified in Windows, which we want to fix.
if: runner.os != 'Windows'
run: |
git diff
git add . && git diff --quiet && git diff --cached --quiet
env:
CI: true