Skip to content

Commit 1defc41

Browse files
Enable CI and fix lint errors (#42)
* Enable CI and fix lint errors * Fix lint run * Add new line at end of file
1 parent 4c82e66 commit 1defc41

File tree

11 files changed

+1764
-84
lines changed

11 files changed

+1764
-84
lines changed

.github/workflows/ci.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: master
6+
pull_request:
7+
8+
jobs:
9+
build:
10+
name: Build & Test
11+
runs-on: ubuntu-latest
12+
13+
strategy:
14+
matrix:
15+
node-version: [12.x, 14.x]
16+
17+
steps:
18+
- uses: actions/checkout@v2
19+
20+
- name: Use Node.js ${{ matrix.node-version }}
21+
uses: actions/setup-node@v2
22+
with:
23+
node-version: ${{ matrix.node-version }}
24+
registry-url: 'https://registry.npmjs.org'
25+
26+
- name: Set all tokens
27+
run: >-
28+
npm config set //registry.npmjs.org/:_authToken ${{ secrets.NPMCORP_TOKEN }}
29+
30+
- name: Build
31+
run: npm ci
32+
33+
- name: Lint
34+
run: npm run lint
35+
36+
- name: Test
37+
run: npm test

0 commit comments

Comments
 (0)