-
-
Notifications
You must be signed in to change notification settings - Fork 924
47 lines (40 loc) · 917 Bytes
/
test.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
name: test
on:
pull_request:
branches: [ next ]
workflow_dispatch:
workflow_call:
permissions:
actions: write
contents: read
# This uses actions/checkout instead of `git clone` directly since it's way
# easier than parsing everything out.
jobs:
lint-docs:
uses: ./.github/workflows/_npm-task.yml
with:
task: lint:docs
continue-on-error: true
lint-js:
uses: ./.github/workflows/_npm-task.yml
with:
task: lint:js
build-js:
needs: lint-js
uses: ./.github/workflows/_npm-task.yml
with:
task: build
test-js:
needs: build-js
strategy:
matrix:
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
node-version:
- 16
- 18
- 20
- 22
uses: ./.github/workflows/_npm-task.yml
with:
node-version: ${{ matrix.node-version }}
task: test:js