Skip to content
This repository was archived by the owner on Feb 1, 2022. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
chore: Test with GitHub Actions
Add a workflow to run tests with GitHub Actions.
  • Loading branch information
richardlau authored and hybrist committed Jan 22, 2020
commit 8077b0230008a8d09643d89945b5fb1e21964cf3
31 changes: 31 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Node CI

on: [push, pull_request]

jobs:
build:

runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
node-version:
# See https://github.com/nodejs/node-inspect/pull/78
# - 10.x
- 12.x
- 13.x

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: npm install, build, and test
run: |
npm install
npm run build --if-present
npm test
env:
CI: true