Skip to content

Commit

Permalink
added component tests to the ci
Browse files Browse the repository at this point in the history
  • Loading branch information
CommanderStorm committed Nov 17, 2023
1 parent eb08a5b commit 545cd1e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/webclient-cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,14 @@ jobs:
with:
version: 8
package_json_file: webclient/package.json
- name: Cypress run
- name: Cypress - component tests
uses: cypress-io/github-action@v5
with:
component: true
wait-on: "http://localhost:3000"
browser: ${{ matrix.browser }}
working-directory: webclient
- name: Cypress - e2e tests
uses: cypress-io/github-action@v5
with:
start: npm run dev
Expand Down
9 changes: 6 additions & 3 deletions webclient/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@
"name": "navigatum",
"version": "0.1.0",
"scripts": {
"cy:run:chrome": "cypress run --browser chrome",
"cy:run:firefox": "cypress run --browser firefox:dev",
"cy:run:chrome:component": "cypress run --browser chrome --component",
"cy:run:chrome:e2e": "cypress run --browser chrome --e2e",
"cy:run:firefox:component": "cypress run --browser firefox:dev --component",
"cy:run:firefox:e2e": "cypress run --browser firefox:dev --e2e",
"cy:open": "cypress open",
"test": "run-p cy:run:chrome cy:run:firefox",
"test": "run-p cy:run:firefox:e2e cy:run:chrome:e2e",
"test:components": "run-p cy:run:chrome:component cy:run:firefox:component",
"dev": "vite",
"build": "run-p type-check build-only",
"preview": "vite preview --port 3000",
Expand Down

0 comments on commit 545cd1e

Please sign in to comment.