Skip to content

Commit

Permalink
ci: switch to github actions (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
Salakar authored Aug 18, 2021
1 parent dbdf7c9 commit 7505fd5
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 32 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/testing.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Testing

on:
push:
branches:
- "**"

jobs:
nodejs:
runs-on: ubuntu-latest
strategy:
matrix:
node: [ "0.12","4","5","6","8","10","11","12","14","16" ]
name: node.js_${{ matrix.node }}_test
steps:
- uses: actions/checkout@v2
- name: Setup node
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- name: NPM install
run: npm install
- name: Run tests
run: npm run test
- name: Submit coverage
run: ./node_modules/.bin/codecov
# Only submit coverage on latest node version since coveralls
# does not run pre node 8.
if: matrix.node == '16'
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
3 changes: 3 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,6 @@ coverage
test
.travis.yml
.gitignore
docs
docs.json
.github
31 changes: 0 additions & 31 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"homepage": "https://docs.page/invertase/denque",
"devDependencies": {
"benchmark": "^2.1.4",
"coveralls": "^2.13.3",
"codecov": "^3.8.3",
"double-ended-queue": "^2.1.0-0",
"istanbul": "^0.4.5",
"mocha": "^3.5.3",
Expand Down

0 comments on commit 7505fd5

Please sign in to comment.