Skip to content

Commit

Permalink
Merge 8fb2a7b into a0d0267
Browse files Browse the repository at this point in the history
  • Loading branch information
williambelle committed Jan 12, 2022
2 parents a0d0267 + 8fb2a7b commit 40c0eb7
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 15 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/build.yml
@@ -0,0 +1,49 @@
# (c) William Belle, 2019-2022.
# 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' ]

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

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

- name: Install and coverage
run: |
npm i
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
12 changes: 0 additions & 12 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.org/innovativeinnovation/create-servicenow-change-request">
<img alt="Travis Status" src="https://travis-ci.org/innovativeinnovation/create-servicenow-change-request.svg?branch=master">
<a href="https://github.com/innovativeinnovation/create-servicenow-change-request/actions">
<img alt="Build Status" src="https://github.com/innovativeinnovation/create-servicenow-change-request/workflows/Build/badge.svg?branch=master">
</a>
<a href="https://coveralls.io/github/innovativeinnovation/create-servicenow-change-request?branch=master">
<img alt="Coverage Status" src="https://coveralls.io/repos/github/innovativeinnovation/create-servicenow-change-request/badge.svg?branch=master"/>
Expand Down
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -20,7 +20,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 @@ -31,6 +31,7 @@
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.1",
"mocha": "^7.2.0",
"mocha-lcov-reporter": "^1.3.0",
"nyc": "^15.1.0"
},
"dependencies": {
Expand Down

0 comments on commit 40c0eb7

Please sign in to comment.