Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate from Travis CI to GitHub Actions #46

Merged
merged 2 commits into from Mar 11, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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
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
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
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