-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
…589) * added 5 parallel container for cypress * Added if forked condition as cypress cannot run on forked PR * separate out e2e into its own workflow file
- Loading branch information
Showing
3 changed files
with
49 additions
and
36 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
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,48 @@ | ||
name: CI - E2E | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
|
||
jobs: | ||
main: | ||
name: Cypress | ||
runs-on: ubuntu-latest | ||
if: github.event.pull_request.head.repo.full_name == github.repository | ||
strategy: | ||
fail-fast: false # https://github.com/cypress-io/github-action/issues/48 | ||
matrix: | ||
containers: [ 1, 2, 3, 4, 5, 6 ] | ||
steps: | ||
- uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f | ||
- uses: actions/setup-node@25316bbc1f10ac9d8798711f44914b1cf3c4e954 | ||
with: | ||
node-version: 15 | ||
cache: 'npm' | ||
|
||
- run: npm ci | ||
|
||
- name: Setup Playground | ||
run: docker-compose -f docker-compose.yml up -d | ||
|
||
- run: .github/workflows/ci/wait-for http://localhost:3001/_actuator/probes/liveness -t 120 | ||
- run: .github/workflows/ci/wait-for http://localhost:3002/_actuator/probes/liveness -t 120 | ||
- run: .github/workflows/ci/wait-for http://localhost:19551/ping -t 120 | ||
|
||
- uses: cypress-io/github-action@6122aa43014e18ec9c2d06fc0bdc5b6759064508 | ||
with: | ||
install: false | ||
record: true | ||
parallel: true | ||
start: npm run start:web | ||
wait-on: 'http://localhost:19006' | ||
browser: chrome | ||
spec: cypress/integration/** | ||
env: | ||
CYPRESS_E2E: true | ||
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- uses: codecov/codecov-action@51d810878be5422784e86451c0e7c14e5860ec47 |
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