Skip to content

Commit

Permalink
NOTICKET. Add a github workflow for testing PRs. (#20)
Browse files Browse the repository at this point in the history
* NOTICKET. Add a github workflow for testing PRs.

* NOTICKET. Use a more universal format for nvm.

This format is understood by `nvm` and by the `setup-node` github action
step. It's equivalent to the old setting.

* NOTICKET. Remove travis configuration.

* ci: run on all PR events
  • Loading branch information
andrewru authored Feb 12, 2024
1 parent 89b855c commit dddf391
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 8 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Test

on:
pull_request:

jobs:
test:
name: Unit Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- id: nvm
run: echo ::set-output name=node-version::$(cat .nvmrc)
shell: bash
- uses: actions/setup-node@v2
with:
node-version: "${{ steps.nvm.outputs.node-version }}"
- id: install
run: npm ci | tee ci-output.log
shell: bash
- id: run-test
shell: bash
run: npm test
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
stable
lts/*
7 changes: 0 additions & 7 deletions .travis.yml

This file was deleted.

0 comments on commit dddf391

Please sign in to comment.