Skip to content
Permalink
Browse files

Update nodejs.yml

  • Loading branch information...
marcomontalbano committed Aug 29, 2019
1 parent 89cb3dd commit 3b229b2d01f0de3c15942fc7eddbb8e9ebb3aadf
Showing with 27 additions and 30 deletions.
  1. +27 −30 .github/workflows/nodejs.yml
@@ -4,7 +4,6 @@ on: [push]

jobs:
test:

runs-on: ubuntu-latest

strategy:
@@ -16,37 +15,32 @@ jobs:
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- name: Project setup `npm install && npm run build`
run: |
npm install
npm run build --if-present
env:
CI: true
- name: Project setup `npm install`
run: npm install
- name: Run `test`
run: npm test

- name: Run `coverage`
run: npm run coverage
- name: Upload `coverage` artifact
uses: actions/upload-artifact@v1
with:
name: coverage
path: coverage/lcov-report


stryker:
needs: test
artifacts:
needs: [test]
runs-on: ubuntu-latest

strategy:
matrix:
node: [10.x]

steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
node-version: 10.x
- name: Project setup `npm install`
run: npm install

- name: Run `coverage`
run: npm run coverage
- name: Upload `coverage` artifact
uses: actions/upload-artifact@v1
with:
name: coverage
path: coverage/lcov-report

- name: Run `stryker`
run: |
npm install
@@ -59,16 +53,19 @@ jobs:


publish:
needs: test
needs: [test]
runs-on: ubuntu-latest

strategy:
matrix:
node: [10.x]

steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v1
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
node-version: 10.x
- name: Project setup `npm install && npm run build`
run: |
npm install
npm run build --if-present
env:
CI: true
- name: Run `publish`
run: npm run publish --if-present

0 comments on commit 3b229b2

Please sign in to comment.
You can’t perform that action at this time.