forked from indutny/bn.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI: change travis to github actions (indutny#241)
* Create nodejs.yml * ci: remove travis config * ci: split actions to test/lint Co-authored-by: Eric Ramos <[email protected]>
- Loading branch information
1 parent
00d5851
commit 51c45d6
Showing
2 changed files
with
60 additions
and
18 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,60 @@ | ||
name: CI | ||
|
||
on: [push, pull_request] | ||
|
||
env: | ||
CI: true | ||
|
||
jobs: | ||
test: | ||
name: Run tests | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node: | ||
- 8 | ||
- 10 | ||
- 12 | ||
steps: | ||
- name: Fetch code | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 1 | ||
|
||
- name: Setup node | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
|
||
- name: Restore node_modules cache | ||
uses: actions/cache@v1 | ||
with: | ||
path: ~/.npm | ||
key: ${{ runner.os }}-node-${{ hashFiles('**/package.json') }} | ||
|
||
- name: Install dependencies | ||
run: npm install --ignore-scripts | ||
|
||
- name: Run tests | ||
run: npm run unit | ||
|
||
lint: | ||
name: Run lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Fetch code | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 1 | ||
|
||
- name: Restore node_modules cache | ||
uses: actions/cache@v1 | ||
with: | ||
path: ~/.npm | ||
key: ${{ runner.os }}-node-${{ hashFiles('**/package.json') }} | ||
|
||
- name: Install dependencies | ||
run: npm install --ignore-scripts | ||
|
||
- name: Run lint command | ||
run: npm run lint |
This file was deleted.
Oops, something went wrong.