Skip to content

Commit

Permalink
Merge 3d8b5b6 into 771ef0b
Browse files Browse the repository at this point in the history
  • Loading branch information
williambelle committed Mar 17, 2021
2 parents 771ef0b + 3d8b5b6 commit 7032093
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 16 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/build.yml
@@ -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
13 changes: 0 additions & 13 deletions .travis.yml

This file was deleted.

4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -7,8 +7,8 @@
</p>

<p align="center">
<a href="https://travis-ci.com/innovativeinnovation/is-epfl-down">
<img alt="Travis Status" src="https://travis-ci.com/innovativeinnovation/is-epfl-down.svg?branch=master">
<a href="https://github.com/innovativeinnovation/is-epfl-down/actions">
<img alt="Build Status" src="https://github.com/innovativeinnovation/is-epfl-down/workflows/Build/badge.svg?branch=master">
</a>
<a href="https://coveralls.io/github/innovativeinnovation/is-epfl-down?branch=master">
<img alt="Coverage Status" src="https://coveralls.io/repos/github/innovativeinnovation/is-epfl-down/badge.svg?branch=master"/>
Expand Down
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -30,7 +30,7 @@
"scripts": {
"test": "eslint . && mocha",
"coverage": "nyc -x src/cli.js -x test/ 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 @@ -41,6 +41,7 @@
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.1.0",
"mocha": "^8.2.1",
"mocha-lcov-reporter": "^1.3.0",
"nyc": "^15.1.0",
"rewire": "^5.0.0"
},
Expand Down

0 comments on commit 7032093

Please sign in to comment.