Skip to content

Commit 126fe71

Browse files
committed
build: use github actions
1 parent ede4cd6 commit 126fe71

3 files changed

Lines changed: 42 additions & 13 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Build Status
2+
3+
on:
4+
push:
5+
branches: [master]
6+
pull_request:
7+
branches: [master]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
node-version: [18.x, 20.x, 22.x]
15+
steps:
16+
- uses: actions/checkout@v3
17+
18+
- name: Use Node.js ${{ matrix.node-version }}
19+
uses: actions/setup-node@v3
20+
with:
21+
node-version: ${{ matrix.node-version }}
22+
- run: npm ci
23+
- run: npm run eslint
24+
- run: npm test
25+
26+
coverage:
27+
runs-on: ubuntu-latest
28+
needs: [build]
29+
steps:
30+
- uses: actions/checkout@v3
31+
32+
- name: Use Node.js ${{ matrix.node-version }}
33+
uses: actions/setup-node@v3
34+
with:
35+
node-version: 20.x
36+
- run: npm ci
37+
- run: npm run coverage
38+
- run: npm run coveralls
39+
40+
- name: Coveralls
41+
uses: coverallsapp/github-action@v2

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
22

.travis.yml

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

0 commit comments

Comments
 (0)