Skip to content

Commit

Permalink
Move from Travis CI to GitHub Actions.
Browse files Browse the repository at this point in the history
  • Loading branch information
RubenVerborgh committed Jan 25, 2021
1 parent db771b1 commit f062c8c
Show file tree
Hide file tree
Showing 2 changed files with 571 additions and 0 deletions.
60 changes: 60 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: CI

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version:
- 4.x
- 6.x
- 6.0
- 7.x
- 8.x
- 9.x
- 10.0
- 10.x
- 11.0
- 11.x
- 12.0
- 12.x
- 13.0
- 13.x
- 14.0
- 14.x
- 15.0
- 15.x
steps:
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- uses: actions/checkout@v2
- run: npm install
- if: ${{ matrix.node-version == '4.x' }}
run: npm install mocha@5.0.0 eslint@4.19.1 esquery@1.0.0 nyc@11.8.0
- run: node_modules/.bin/nyc --reporter=text-lcov node_modules/.bin/mocha | tee lcov.info
- uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.github_token }}
flag-name: run-${{ matrix.node-version }}
parallel: true
path-to-lcov: lcov.info

coveralls:
needs: test
runs-on: ubuntu-latest
steps:
- name: Consolidate test coverage from different jobs
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.github_token }}
parallel-finished: true
Loading

0 comments on commit f062c8c

Please sign in to comment.