-
Notifications
You must be signed in to change notification settings - Fork 517
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch from Travis to GitHub Actions for CI (#642)
- add package-lock.json (as is recommended and because 'npm ci' requires it) - some fixes to jsstyle for the newer Perl version on ubuntu-latest runners - use "files" in package.json to reduce the noise files in published packages
- Loading branch information
Showing
9 changed files
with
3,045 additions
and
41 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,13 @@ | ||
name: Check Lint/Style | ||
on: [push, pull_request] | ||
jobs: | ||
check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
# Use current node LTS version. | ||
node-version: '12.x' | ||
- run: npm ci | ||
- run: npm run check |
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,61 @@ | ||
name: Test | ||
|
||
on: | ||
push: | ||
paths-ignore: | ||
- 'docs/**' | ||
- '*.md' | ||
pull_request: | ||
paths-ignore: | ||
- 'docs/**' | ||
- '*.md' | ||
|
||
jobs: | ||
# Test once on every (available) plat, using LTS node version | ||
# (https://nodejs.org/en/about/releases/). | ||
# | ||
# TODO: add windows-latest when moved to node-tap and don't have to | ||
# rely on shell globbing | ||
test-plats: | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, macos-latest] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: '12.x' | ||
- run: npm ci | ||
- run: npm test | ||
|
||
# Test once for every supported node version (don't repeat the LTS | ||
# node version from the previous step). Only test on one | ||
# platform to not overkill the number of builds. | ||
test-vers: | ||
strategy: | ||
matrix: | ||
node: ['8.x', '10.x', '14.x'] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
- run: npm ci | ||
- run: npm test | ||
|
||
# Test older versions separately because really old node/npm don't support | ||
# 'npm ci'. | ||
test-old-vers: | ||
strategy: | ||
matrix: | ||
node: ['0.10.x', '4.x', '6.x'] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
- run: npm install | ||
- 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 |
---|---|---|
|
@@ -3,4 +3,4 @@ | |
*.log | ||
!/test/corpus/*.log | ||
/*.tgz | ||
/test/*.log.0 | ||
/test/log.test.rot.log.* |
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.