-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8fca6cb
commit 143f768
Showing
3 changed files
with
47 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
stages: | ||
- build | ||
- test | ||
|
||
## Set environment variables for folders in "cache" job settings for npm modules and Cypress binary | ||
variables: | ||
npm_config_cache: '$CI_PROJECT_DIR/.npm' | ||
CYPRESS_CACHE_FOLDER: '$CI_PROJECT_DIR/cache/Cypress' | ||
FF_USE_FASTZIP: 1 | ||
|
||
cache: | ||
key: ${CI_COMMIT_REF_SLUG} | ||
paths: | ||
- .cache/* | ||
- cache/Cypress | ||
- node_modules | ||
- build | ||
|
||
## Install NPM dependencies and Cypress | ||
install: | ||
image: cypress/browsers:node16.14.2-slim-chrome100-ff99-edge | ||
stage: build | ||
script: | ||
- npm ci | ||
|
||
ui-chrome-tests: | ||
image: cypress/browsers:node16.14.2-slim-chrome100-ff99-edge | ||
stage: test | ||
parallel: 2 | ||
script: | ||
# start the server in the background | ||
- npm run start & npx wait-on http://localhost:4200 | ||
# run Cypress tests in parallel | ||
- npx cypress run --parallel --record --browser chrome --group "UI - Chrome" | ||
|
||
ui-firefox-tests: | ||
image: cypress/browsers:node16.14.2-slim-chrome100-ff99-edge | ||
stage: test | ||
parallel: 2 | ||
script: | ||
# start the server in the background | ||
- npm run start & npx wait-on http://localhost:4200 | ||
# run Cypress tests in parallel | ||
- npx cypress run --parallel --record --browser firefox --group "UI - Firefox" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
{ | ||
"baseUrl": "http://localhost:4200" | ||
"baseUrl": "http://localhost:4200", | ||
"projectId": "hq1hyq" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters