Skip to content

Commit a8c359e

Browse files
authored
Merge pull request #137 from arithmetric/github_actions
Adding GitHub Actions configuration to run linting and tests
2 parents 0e58e8c + 1c33994 commit a8c359e

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/lint-test.yaml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: 'Lint and Test'
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- master
8+
- github_actions
9+
pull_request:
10+
11+
jobs:
12+
lint-test:
13+
runs-on: ubuntu-latest
14+
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
nodejs_version: [ "8.10", 10, 12 ]
19+
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@v3
23+
24+
- name: Setup Node.js
25+
uses: actions/setup-node@v3
26+
with:
27+
node-version: ${{ matrix.nodejs_version }}
28+
29+
- run: node --version && npm --version
30+
31+
- run: npm install
32+
33+
- run: npm run lint
34+
35+
- run: npm run test
36+
37+
# Requires setting up Coveralls access token
38+
# - run: npm run check-coverage && (cat ./coverage/lcov.info | ./node_modules/.bin/coveralls)

0 commit comments

Comments
 (0)