Skip to content

Commit

Permalink
feat: use parallel tests and modify code
Browse files Browse the repository at this point in the history
  • Loading branch information
sniperadmin authored Jun 13, 2020
1 parent ce6600a commit 1788fef
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,17 @@ on:
- master

jobs:
build:
test:
runs-on: ubuntu-latest
strategy:
# when one test fails, DO NOT cancel the other
# containers, because this will kill Cypress processes
# leaving the Dashboard hanging ...
# https://github.com/cypress-io/github-action/issues/48
fail-fast: false
matrix:
node-version: [12.x]
containers: [1, 2, 3]
steps:
- uses: actions/checkout@master

Expand All @@ -34,15 +40,22 @@ jobs:
CI: true

- name: Tests
uses: actions/checkout@v2
uses: cypress-io/github-action@v1
with:
start: npm run serve
record: false # cypress.io free recording limit exceeded
wait-on: 'http://localhost:8080'
run: npm test
command: npm test
parallel: true
env:
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: list all files
run: |
cd coverage
ls
- name: Code Coverage Report
uses: codecov/codecov-action@v1
with:
Expand Down

0 comments on commit 1788fef

Please sign in to comment.