Skip to content

Commit 1b5d515

Browse files
committed
adding workflow + fixing eslint issues
1 parent e3e9b93 commit 1b5d515

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/validation.yml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Validation
2+
3+
on: pull_request
4+
5+
jobs:
6+
lint:
7+
name: Linting
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@master
11+
- name: Use Node.js 12.x
12+
uses: actions/setup-node@v1
13+
with:
14+
node-version: 12.x
15+
- name: Install dependencies
16+
run: |
17+
npm install
18+
- name: ESLint
19+
run: npm run lint
20+
21+
test:
22+
name: Run unit tests
23+
runs-on: ubuntu-latest
24+
steps:
25+
- uses: actions/checkout@master
26+
- name: Use Node.js 12.x
27+
uses: actions/setup-node@v1
28+
with:
29+
node-version: 12.x
30+
- name: Install dependencies
31+
run: npm install
32+
- name: Mocha
33+
run: npm run test --coverage
34+
- name: Coveralls
35+
uses: coverallsapp/[email protected]
36+
with:
37+
github-token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)