Skip to content

Commit a351da9

Browse files
committed
Github Actions.
1 parent d710886 commit a351da9

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/test.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
strategy:
14+
matrix:
15+
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
16+
node-version: [18.x, 20.x]
17+
18+
steps:
19+
- uses: actions/checkout@v3
20+
- name: Use Node ${{ matrix.node-version }}
21+
uses: actions/setup-node@v3
22+
with:
23+
node-version: ${{ matrix.node-version }}
24+
cache: 'npm'
25+
- run: npm ci
26+
- run: npm test
27+
28+
lint:
29+
runs-on: ubuntu-latest
30+
steps:
31+
- uses: actions/checkout@v3
32+
- name: Use Node 18
33+
uses: actions/setup-node@v3
34+
with:
35+
node-version: 18.x
36+
cache: 'npm'
37+
- run: npm ci
38+
- run: npm run lint

0 commit comments

Comments
 (0)