-
-
Notifications
You must be signed in to change notification settings - Fork 986
31 lines (26 loc) · 882 Bytes
/
Copy pathunit-tests.yml
File metadata and controls
31 lines (26 loc) · 882 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
name: Unit Tests
on:
pull_request:
branches: [master, "[0-9]*.[0-9]*.[0-9]*"]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
env:
# Electron is only needed to package the desktop app, skip its ~100 MB binary here
ELECTRON_SKIP_BINARY_DOWNLOAD: 1
jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v5
with:
node-version: "24"
- name: Install dependencies
run: npm ci
- name: Check the version is in sync across versioning.ts and the package files
run: node scripts/sync-version.js --check
- name: Check the public assets index.html serves are stamped with their current contents
run: node scripts/stamp-assets.js --check
- name: Run Unit tests
run: npm run test