-
Notifications
You must be signed in to change notification settings - Fork 157
41 lines (38 loc) · 1.18 KB
/
nodejs.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: Node CI
on: [push, pull_request]
jobs:
# We do not strictly need an install-deps job
# because we do not kick of multiple jobs in parallel
# that would all try to install deps when the key changes.
# Skipping this saves a few seconds until the point where we need it.
# install-deps:
# runs-on: ubuntu-latest
# strategy:
# matrix:
# node-version: [12.x, 14.x, 16.x]
# steps:
# - uses: actions/checkout@v4
# - uses: ./.github/actions/configure-nodejs
# with:
# node-version: ${{ matrix.node-version }}
# lookup-only: 'true' # We only want to lookup from the cache - if a hit, this job does nothing
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x, 22.x]
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/configure-nodejs
with:
node-version: ${{ matrix.node-version }}
- name: Lint
run: npm run lint
- name: Check Formatting with Prettier
run: npm run prettier
- name: Build TypeScript
run: npm run build
- name: Unit Tests
run: npm run test
- name: XML Lint Test
run: npm run test:xmllint