Skip to content

Commit 2ebdbe3

Browse files
authored
meta: add GitHub Actions CI (#5)
* meta: add GitHub Actions CI * meta: remove Travis CI
1 parent c4765e3 commit 2ebdbe3

File tree

2 files changed

+34
-8
lines changed

2 files changed

+34
-8
lines changed

.github/workflows/ci.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
lint:
8+
name: Lint code
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v3
12+
- uses: actions/setup-node@v3
13+
with:
14+
node-version: 18.x
15+
cache: 'npm'
16+
- run: npm ci
17+
- run: npm run eslint
18+
build-and-test:
19+
name: Build and test code
20+
runs-on: ubuntu-latest
21+
needs: lint
22+
strategy:
23+
matrix:
24+
node-version: [14.x, 18.x]
25+
steps:
26+
- uses: actions/checkout@v3
27+
- name: Use Node.js ${{ matrix.node-version }}
28+
uses: actions/setup-node@v3
29+
with:
30+
node-version: ${{ matrix.node-version }}
31+
cache: 'npm'
32+
- run: npm ci
33+
- run: npm run build
34+
- run: npm run test

.travis.yml

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

0 commit comments

Comments
 (0)