-
-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (30 loc) · 864 Bytes
/
build.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
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: Build CI
on:
push:
permissions:
contents: read
jobs:
build:
name: Build (Node ${{ matrix.node.name }})
strategy:
fail-fast: false
matrix:
node:
- version: lts/*
name: LTS
- version: lts/-1
name: Previous LTS
- version: current
name: Current
runs-on: ubuntu-latest
steps:
- name: Check out source
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
- name: Set up Node.js environment
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3.8.1
with:
node-version: ${{ matrix.node.version }}
cache: npm
- name: Install dependencies and run tests
run: npm cit