Skip to content

Commit

Permalink
Merge pull request #46 from innovativeinnovation/cho-travis-to-gha
Browse files Browse the repository at this point in the history
  • Loading branch information
williambelle committed Mar 11, 2021
2 parents 8d0179f + b28e274 commit d9eb585
Show file tree
Hide file tree
Showing 5 changed files with 54 additions and 38 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# (c) William Belle, 2021.
# See the LICENSE file for more details.

name: Build

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
name: Node.js ${{ matrix.node }} CI

strategy:
fail-fast: false
matrix:
node: [ '10', '12', '14', '15' ]

steps:
- name: Clone repository
uses: actions/checkout@v2

- name: Setup node
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}

- name: Install, test and coverage
run: |
npm i
npm t
npm run coveralls
- name: Coveralls
uses: coverallsapp/github-action@v1.1.2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
flag-name: run-node-${{ matrix.node }}
parallel: true

finish:
needs: build
runs-on: ubuntu-latest
name: Coveralls

steps:
- name: Coveralls Finished
uses: coverallsapp/github-action@v1.1.2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel-finished: true
22 changes: 0 additions & 22 deletions .github/workflows/nodejs.yml

This file was deleted.

13 changes: 0 additions & 13 deletions .travis.yml

This file was deleted.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
</p>

<p align="center">
<a href="https://travis-ci.com/innovativeinnovation/epfl-people-api">
<img alt="Travis Status" src="https://travis-ci.com/innovativeinnovation/epfl-people-api.svg?branch=master">
<a href="https://github.com/innovativeinnovation/epfl-people-api/actions">
<img alt="Build Status" src="https://github.com/innovativeinnovation/epfl-people-api/workflows/Build/badge.svg?branch=master">
</a>
<a href="https://coveralls.io/github/innovativeinnovation/epfl-people-api?branch=master">
<img alt="Coverage Status" src="https://coveralls.io/repos/github/innovativeinnovation/epfl-people-api/badge.svg?branch=master"/>
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"scripts": {
"test": "eslint . && mocha",
"coverage": "nyc mocha",
"coveralls": "npm run coverage && nyc report --reporter=text-lcov | coveralls"
"coveralls": "npm run coverage && nyc report --reporter=lcov"
},
"devDependencies": {
"chai": "^4.2.0",
Expand All @@ -32,6 +32,7 @@
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.2",
"mocha": "^8.2.0",
"mocha-lcov-reporter": "^1.3.0",
"nyc": "^15.1.0",
"rewire": "^5.0.0"
},
Expand Down

0 comments on commit d9eb585

Please sign in to comment.