-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PR-URL: #272 Credit: @JasonEtco Close: #272 Reviewed-by: @ruyadorno
- Loading branch information
Showing
1 changed file
with
43 additions
and
0 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,43 @@ | ||
name: Node CI | ||
|
||
on: [push] | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
matrix: | ||
node-version: [8.x, 10.x, 12.x] | ||
os: [ubuntu-latest, windows-latest] | ||
|
||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
# Checkout the npm/cli repo | ||
- uses: actions/checkout@v1 | ||
|
||
# Installs the specific version of Node.js | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
# Run the installer script | ||
- name: Install dependencies | ||
run: node . install | ||
|
||
# Run the tests | ||
- name: Run Tap tests | ||
run: node . run tap -- "test/tap/*.js" -t600 -Rclassic -c | ||
env: | ||
DEPLOY_VERSION: testing | ||
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_OPTIONAL_TOKEN }} | ||
|
||
# - name: Run sudo tests on Linux | ||
# if: matrix.os == 'ubuntu-latest' | ||
# run: sudo PATH=$PATH $(which node) . run tap -- "test/tap/*.js" --coverage --timeout 600 | ||
|
||
- name: Lint | ||
run: npx standard | ||
|
||
- name: Validate licenses | ||
run: node . run licenses |