Skip to content

Commit

Permalink
Merge 79f7233 into cf3acf6
Browse files Browse the repository at this point in the history
  • Loading branch information
stdavis committed Oct 8, 2020
2 parents cf3acf6 + 79f7233 commit 69facdc
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 7 deletions.
38 changes: 31 additions & 7 deletions .github/workflows/node.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,48 @@
name: Node.js CI

on: push
on: ["push", "pull_request"]

jobs:
build:

test:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [10.x, 12.x, 14.x]

steps:
- uses: actions/checkout@v2
- name: Checkout
uses: actions/checkout@v2

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run build --if-present
- run: npm test -- --watchAll=false

- name: Install Dependencies
run: npm ci

- name: Test ${{ matrix.test_number }}
run: npm test -- --watchAll=false
env:
CI: true

- name: Coveralls Parallel
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.github_token }}
flag-name: run-${{ matrix.test_number }}
parallel: true

- name: Test Build
run: npm run build --if-present

finish:
needs: test
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.github_token }}
parallel-finished: true
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"cSpell.words": [
"coverallsapp",
"oclif",
"octokit",
"posttest",
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Find open issues in open source dependencies of your NodeJS project that you can
[![Version](https://img.shields.io/npm/v/good-samaritan.svg)](https://npmjs.org/package/good-samaritan)
[![Downloads/week](https://img.shields.io/npm/dw/good-samaritan.svg)](https://npmjs.org/package/good-samaritan)
[![License](https://img.shields.io/npm/l/good-samaritan.svg)](https://github.com/stdavis/good-samaritan/blob/master/package.json)
[![Coverage Status](https://coveralls.io/repos/github/stdavis/good-samaritan/badge.svg?branch=master)](https://coveralls.io/github/stdavis/good-samaritan?branch=master)

## Usage

Expand Down

0 comments on commit 69facdc

Please sign in to comment.