Skip to content

Commit 50a0958

Browse files
Add CI
1 parent 1c49d5f commit 50a0958

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

.github/workflows/test.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: test-javascript
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
workflow_call:
11+
12+
jobs:
13+
test-javascript:
14+
runs-on: ${{ matrix.os }}
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
os:
19+
- ubuntu-latest
20+
node-version: ["12.x", "14.x", "16.x", "17.x"]
21+
include:
22+
- os: windows-latest
23+
node-version: "17.x"
24+
- os: macos-latest
25+
node-version: "17.x"
26+
27+
steps:
28+
- name: set git core.autocrlf to 'input'
29+
run: git config --global core.autocrlf input
30+
31+
- uses: actions/checkout@v2
32+
33+
- name: with Node.js ${{ matrix.node-version }} on ${{ matrix.os }}
34+
uses: actions/setup-node@v3
35+
with:
36+
node-version: ${{ matrix.node-version }}
37+
cache: "npm"
38+
cache-dependency-path: package-lock.json
39+
40+
- run: npm install-test
41+
42+
- run: npm run build
43+
44+
- run: npm run eslint

0 commit comments

Comments
 (0)