Skip to content
This repository was archived by the owner on Feb 1, 2022. It is now read-only.

Commit 8077b02

Browse files
richardlauhybrist
authored andcommitted
chore: Test with GitHub Actions
Add a workflow to run tests with GitHub Actions.
1 parent 75c3e93 commit 8077b02

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Node CI
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ubuntu-latest
9+
10+
strategy:
11+
fail-fast: false
12+
matrix:
13+
node-version:
14+
# See https://github.com/nodejs/node-inspect/pull/78
15+
# - 10.x
16+
- 12.x
17+
- 13.x
18+
19+
steps:
20+
- uses: actions/checkout@v2
21+
- name: Use Node.js ${{ matrix.node-version }}
22+
uses: actions/setup-node@v1
23+
with:
24+
node-version: ${{ matrix.node-version }}
25+
- name: npm install, build, and test
26+
run: |
27+
npm install
28+
npm run build --if-present
29+
npm test
30+
env:
31+
CI: true

0 commit comments

Comments
 (0)