Skip to content

Commit f94b119

Browse files
authored
ci(github-actions): lint and test (chimurai#466)
1 parent 5384dcf commit f94b119

File tree

3 files changed

+45
-1
lines changed

3 files changed

+45
-1
lines changed

.github/workflows/coveralls.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ name: Coveralls
55
jobs:
66

77
build:
8-
name: Build
8+
name: coveralls/build
99
runs-on: ubuntu-latest
1010
steps:
1111

.github/workflows/lint.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Lint
2+
3+
on: ["push","pull_request"]
4+
5+
jobs:
6+
build:
7+
name: Lint
8+
9+
runs-on: ubuntu-latest
10+
11+
strategy:
12+
matrix:
13+
node-version: [14.x]
14+
15+
steps:
16+
- uses: actions/checkout@v2
17+
- name: Use Node.js ${{ matrix.node-version }}
18+
uses: actions/setup-node@v1
19+
with:
20+
node-version: ${{ matrix.node-version }}
21+
- run: yarn install
22+
- run: yarn lint

.github/workflows/test.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Test
2+
3+
on: ["push","pull_request"]
4+
5+
jobs:
6+
build:
7+
name: Test with Node.js ${{ matrix.node-version }}
8+
9+
runs-on: ubuntu-latest
10+
11+
strategy:
12+
matrix:
13+
node-version: [10.x, 12.x, 14.x]
14+
15+
steps:
16+
- uses: actions/checkout@v2
17+
- name: Use Node.js ${{ matrix.node-version }}
18+
uses: actions/setup-node@v1
19+
with:
20+
node-version: ${{ matrix.node-version }}
21+
- run: yarn install
22+
- run: yarn test

0 commit comments

Comments
 (0)