-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (44 loc) · 1.2 KB
/
lint-test-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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Lint, Test and Build
on:
workflow_call:
workflow_dispatch:
jobs:
job_lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout, Setup Node.js v${{ env.NODE_VERSION }} and Install dependencies
uses: manferlo81/action-checkout-node-install@v0
with:
node-version: ${{ env.NODE_VERSION }}
env:
NODE_VERSION: 20.x
- name: Build
run: npm run lint
job_test_and_build:
strategy:
matrix:
os:
- name: Windows
image: windows-latest
- name: Ubuntu
image: ubuntu-latest
- name: macOS
image: macos-latest
node-version:
- 18.x
- 20.x
- 21.x
- 22.x
name: Test and Build ( ${{ matrix.os.name }}, Node.js v${{ matrix.node-version }} )
runs-on: ${{ matrix.os.image }}
needs: job_lint
steps:
- name: Checkout, Setup Node.js v${{ matrix.node-version }} and Install dependencies
uses: manferlo81/action-checkout-node-install@initial
with:
node-version: ${{ matrix.node-version }}
- name: Build
run: npm test
env:
COVERAGE: SKIP