Skip to content

Commit

Permalink
Test(config): Schedule and clean up Github action
Browse files Browse the repository at this point in the history
  • Loading branch information
fvdm committed Aug 28, 2021
1 parent e805ca6 commit f1ea721
Showing 1 changed file with 25 additions and 22 deletions.
47 changes: 25 additions & 22 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ on:
push:
branches: [ master, develop ]
pull_request:
branches: [ master, develop ]

branches: [ develop ]
schedule:
- cron: '42 18 * * 6'

jobs:
lts_versions:
Expand All @@ -25,29 +26,31 @@ jobs:
matrix:
node-version: ${{ fromJson(needs.lts_versions.outputs.matrix) }}
steps:
- uses: actions/checkout@v2
- name: Test on Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- run: git fetch --prune --unshallow
- run: npm install
- run: npm test
- run: npm audit --production
- name: Coveralls Parallel
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
flag-name: node-${{ matrix.node-version }}
parallel: true
- uses: actions/checkout@v2
- name: Test on Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- run: git fetch --prune --unshallow
- run: npm install
- run: npm test
env:
DOTEST_NOCOV: ${{ secrets.DOTEST_NOCOV }}
- run: npm audit --production
- name: Coveralls Parallel
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
flag-name: node-${{ matrix.node-version }}
parallel: true

finish:
name: "Finish"
needs: build
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel-finished: true
- name: Coveralls Finished
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel-finished: true

0 comments on commit f1ea721

Please sign in to comment.