-
Notifications
You must be signed in to change notification settings - Fork 5
52 lines (41 loc) · 1.25 KB
/
node-next.yml
File metadata and controls
52 lines (41 loc) · 1.25 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
48
49
50
51
52
name: Node.js Next (nightly)
on:
schedule:
# Run weekly on Mondays at 06:00 UTC
- cron: '0 6 * * 1'
workflow_dispatch:
# Set default permissions to read-only
permissions: read-all
jobs:
test-node-next:
name: Build & Test on Node.js Nightly
runs-on: ubuntu-latest
continue-on-error: true
permissions:
contents: read
steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@a5ad31d6a139d249332a2605b85202e8c0b78450 # v2.19.1
with:
egress-policy: audit
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Setup Node.js nightly
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: 'nightly'
check-latest: true
cache: 'npm'
- name: Display Node.js version
run: node --version && npm --version
- name: Install dependencies
run: npm ci
- name: Run TypeScript check
run: npm run check
- name: Run linter
run: npm run lint
- name: Run unit tests
run: npm run test -- --reporter=verbose
env:
CI: true
- name: Build
run: npm run build