Skip to content
This repository has been archived by the owner on Nov 23, 2023. It is now read-only.

Commit

Permalink
Add building to testing workflow for e2e testing
Browse files Browse the repository at this point in the history
  • Loading branch information
SharkmanZA committed Jul 31, 2023
1 parent 92a244c commit 53110c8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,18 @@ jobs:

- name: Install dependencies
run: npm ci
- name: Run tests and collect coverage
- name: Run unit/integration tests and collect coverage
run: npm run test
- name: Upload coverage to Codecov
if: ${{ runner.os == 'macOS' }}
uses: codecov/codecov-action@v3
with:
files: coverage/lcov.info
token: ${{ secrets.CODECOV_TOKEN }}
- name: Build app
run: npm run build
- name: Run e2e tests
run: npm run playwright

end:
name: End State ✅✅✅
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"start:electron:nodemon": "nodemon --verbose",
"start:electron:dev": "npm-run-all -s build:electron:dev start:electron:nodemon",
"start:electron": "sleep 2 && npm-run-all -p build:electron:dev:watch start:electron:dev",
"test": "jest --config jest.config.json && npm run playwright",
"test": "jest --config jest.config.json",
"preplaywrite": "npm run build",
"playwright": "playwright test",
"postinstall": "electron-builder install-app-deps",
Expand Down

0 comments on commit 53110c8

Please sign in to comment.