Skip to content

Commit a5045b0

Browse files
authored
chore: Add Test github action (#378)
1 parent 0cef5ee commit a5045b0

File tree

3 files changed

+36
-61
lines changed

3 files changed

+36
-61
lines changed

.circleci/config.yml

Lines changed: 0 additions & 60 deletions
This file was deleted.

.github/workflows/test.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Test CI
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- master
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
strategy:
14+
matrix:
15+
node-version: [8.x, 10.x, 12.x, 13.x]
16+
17+
steps:
18+
- uses: actions/checkout@v1
19+
- name: Use Node.js ${{ matrix.node-version }}
20+
uses: actions/setup-node@v1
21+
with:
22+
node-version: ${{ matrix.node-version }}
23+
- name: npm install, and build
24+
run: |
25+
npm ci
26+
npm run build --if-present
27+
env:
28+
CI: true
29+
- name: npm test
30+
run: npm run test:coverage
31+
- name: coverage
32+
uses: codecov/codecov-action@v1.0.5
33+
if: matrix.node-version == '13.x'
34+
with:
35+
token: ${{ secrets.CODECOV_TOKEN }}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"url": "https://github.com/tleunen/babel-plugin-module-resolver.git"
99
},
1010
"engines": {
11-
"node": ">= 6.0.0"
11+
"node": ">= 8.0.0"
1212
},
1313
"files": [
1414
"lib"

0 commit comments

Comments
 (0)