Skip to content

Commit

Permalink
Push coverage from GH Actions; remove TravisCI (#1034)
Browse files Browse the repository at this point in the history
* attempt to push coverage from gh actions

* fix

* fix

* fix failing lint because node 6 npm install doesn't obey package-lock and pulls newer @types/node

* fix

* fix

* try using coveralls gh action

* parallel coveralls

* add nigthly test

* try to force finish to run always

* try again

* fix

* remove intentially failing test
  • Loading branch information
cspotcode committed May 10, 2020
1 parent a335834 commit c24a768
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 29 deletions.
29 changes: 27 additions & 2 deletions .github/workflows/continuous-integration.yml
@@ -1,5 +1,12 @@
name: Continuous Integration
on: [push, pull_request]
on:
# branches pushed by collaborators
push: {}
# pull request from non-collaborators
pull_request: {}
# nightly
schedule:
- cron: '0 0 * * *'
jobs:
test:
name: "Test #${{ matrix.flavor }}: node v${{ matrix.node }}, ${{ matrix.typescript }}"
Expand Down Expand Up @@ -40,7 +47,25 @@ jobs:
node-version: ${{ matrix.node }}
# lint, build, test
- run: npm install
- run: npm run lint
- run: npm run build
- run: npm rm tslint
- run: npm install ${{ matrix.typescript }}
- run: npm install ${{ matrix.typescript }} --force
- run: npm run test-cov
- name: Coveralls
if: ${{ always() }}
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.github_token }}
flag-name: run-${{ matrix.flavor }}
parallel: true
finish:
needs: test
runs-on: ubuntu-latest
if: ${{ always() }}
steps:
- name: Coveralls Finished
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.github_token }}
parallel-finished: true
27 changes: 0 additions & 27 deletions .travis.yml

This file was deleted.

0 comments on commit c24a768

Please sign in to comment.