-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NOTICKET. Add a github workflow for testing PRs. (#20)
* 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
Showing
3 changed files
with
24 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
stable | ||
lts/* |
This file was deleted.
Oops, something went wrong.