forked from scratchblocks/scratchblocks
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (29 loc) · 819 Bytes
/
test.yml
File metadata and controls
38 lines (29 loc) · 819 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
35
36
37
38
name: Run tests
on: [push, pull_request]
jobs:
run:
name: Run tests
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
token: ${{ github.token }}
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 22
cache: "npm"
- name: Install
run: npm ci
- name: Disable AppArmor restriction
run: echo 0 | sudo tee /proc/sys/kernel/apparmor_restrict_unprivileged_userns
- name: Test
run: npm run test
- name: Check whether snapshot builds
run: npm run snapshots
- name: Check whether locales build
run: npm run locales
- name: Check whether the code builds
run: npm run build