-
Notifications
You must be signed in to change notification settings - Fork 964
40 lines (40 loc) · 1.01 KB
/
node-ci.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
name: Node CI
on:
push:
branches:
- main
pull_request:
merge_group:
types: [checks_requested]
workflow_dispatch: # generally only for the "combine-prs" workflow
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
jobs:
test:
strategy:
matrix:
include:
- name: Static Tests
command: bin/static_tests
- name: Static Lint
command: bin/static_lint
- name: Static Pipeline
command: bin/static_pipeline
runs-on: ubuntu-latest
name: ${{ matrix.name }}
steps:
- name: Check out repository
uses: actions/checkout@v4
with:
persist-credentials: false
- uses: actions/setup-node@v4
with:
node-version: 23.1.0
cache: 'npm'
- name: Install Node dependencies
run: npm ci
- name: Run ${{ matrix.name }}
run: ${{ matrix.command }}