-
Notifications
You must be signed in to change notification settings - Fork 10
42 lines (34 loc) · 955 Bytes
/
test.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
42
name: "Run tests"
on: [push, pull_request]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
name: "Run tests (Node ${{ matrix.node }})"
runs-on: [self-hosted]
strategy:
matrix:
# TODO(#496): Figure out why Node 18 is segfaulting
node: [20]
steps:
# Environment security
- name: Step Security
uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895 # v2.6.1
with:
egress-policy: audit
# Checkout
# Most toolchains require checkout first
- name: Checkout
uses: actions/checkout@v4
# Language toolchains
- name: Install Node
uses: actions/[email protected]
with:
node-version: ${{ matrix.node }}
cache: npm
# Workflow
- name: Install dependencies
run: npm ci
- name: Run tests
run: npm test