Skip to content

Commit

Permalink
fix: One action for all tests
Browse files Browse the repository at this point in the history
Reverting to one action for all tests
  • Loading branch information
BKristenssonAlfsson committed Jun 12, 2020
1 parent 1346cea commit 34c2654
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 12 deletions.
15 changes: 3 additions & 12 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,22 +30,13 @@ jobs:
npm install
env:
CI: true
- name: Unit tests with Jest
uses: mattallty/jest-github-action@v1
with:
changes-only: false
test-command: npm test:unit
- name: Code Coverage Report
uses: codecov/codecov-action@v1
with:
file: ./coverage/jest/coverage-final.json # optional
fail_ci_if_error: true # optional (default = false)
- name: End-to-end Tests with Cypress
uses: cypress-io/github-action@v1
- name: Tests
uses: github-action@v1
with:
start: npm run serve
record: false # cypress.io free recording limit exceeded
wait-on: 'http://localhost:8080'
run: npm test
env:
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
"lint": "vue-cli-service lint",
"codecov:e2e": "codecov -f ./coverage/coverage-final.json",
"codecov:unit": "codecov -f ./coverage/jest/coverage-final.json",
"codecov": "codecov -f coverage/coverage-final.json && codecov -f coverage/jest/coverage-final.json",
"test:unit": "jest",
"test:e2e": "npx cypress run",
Expand Down

0 comments on commit 34c2654

Please sign in to comment.