-
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.
travis broke, test and badge with github actions instead
- Loading branch information
Showing
4 changed files
with
49 additions
and
20 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: build | ||
on: | ||
push: | ||
# branches: [ $default-branch, ar-test ] | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node: [ 0.10.x, 4, 8, 12, 16, 18, 5.8.0 ] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
- run: npm install | ||
- run: npm install -g qnit | ||
|
||
- name: npm test | ||
if: ${{ matrix.node != '5.8.0' }} | ||
run: npm test | ||
|
||
- name: npm test v0.8 | ||
if: ${{ matrix.node == '5.8.0' }} | ||
run: | | ||
# npm@1 cannot ssl connect to npmjs.org or github.com, so use node-v5.8 setup to test | ||
curl -s https://nodejs.org/dist/v0.8.28/node-v0.8.28-linux-x64.tar.gz > node.tgz | ||
tar xfzO node.tgz node-v0.8.28-linux-x64/bin/node > node_modules/.bin/node | ||
chmod a+rx node_modules/.bin/node | ||
npm test | ||
rm node_modules/.bin/node | ||
- name: test coverage | ||
if: ${{ matrix.node == '5.8.0' }} | ||
run: | | ||
npm install -g nyc@8.4.0 | ||
npm run coverage | ||
- name: upload coverage | ||
if: ${{ matrix.node == '5.8.0' }} | ||
uses: coverallsapp/github-action@v1.1.2 | ||
with: | ||
github-token: ${{ github.token }} |
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
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