-
Notifications
You must be signed in to change notification settings - Fork 177
ci: run smoke and nightly e2e #7965
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
shoom3301
wants to merge
15
commits into
feat/e2e-playwright-2
Choose a base branch
from
feat/e2e-playwright-3
base: feat/e2e-playwright-2
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 10 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
bfa0940
Merge branch 'feat/e2e-playwright-2' of https://github.com/cowprotoco…
shoom3301 50aa99b
chore: delete cypress
shoom3301 3fc5d52
Merge branch 'feat/e2e-playwright-2' of https://github.com/cowprotoco…
shoom3301 0a3a1c3
Merge branch 'feat/e2e-playwright-2' of https://github.com/cowprotoco…
shoom3301 02ce9ec
Merge branch 'feat/e2e-playwright-2' of https://github.com/cowprotoco…
shoom3301 a67c3c7
chore: revert
shoom3301 abedb95
chore: remove slack notification from smoke
shoom3301 463b1f8
Merge branch 'feat/e2e-playwright-2' of https://github.com/cowprotoco…
shoom3301 ba7d7aa
chore: update bundle sizes [automatic]
cowswap-release-sync[bot] 7986cbc
Merge branch 'feat/e2e-playwright-2' of https://github.com/cowprotoco…
shoom3301 a53f387
Merge branch 'feat/e2e-playwright-2' of https://github.com/cowprotoco…
shoom3301 7bfcaf8
chore: update lock
shoom3301 afdff68
chore: fix workflows
shoom3301 797279d
Merge branch 'feat/e2e-playwright-2' of https://github.com/cowprotoco…
shoom3301 4558f5f
chore: change slack channel
shoom3301 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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,53 @@ | ||
| name: E2E PW nightly | ||
|
|
||
| on: | ||
| schedule: | ||
| - cron: '0 2 * * *' # every day at 2:00 AM | ||
| workflow_dispatch: | ||
|
|
||
| jobs: | ||
| full: | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 90 | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| shard: [1, 2, 3, 4] | ||
| env: | ||
| INTEGRATION_TEST_PRIVATE_KEY: ${{ secrets.INTEGRATION_TEST_PRIVATE_KEY }} | ||
| REACT_APP_NETWORK_URL_11155111: ${{ secrets.REACT_APP_NETWORK_URL_11155111 }} | ||
| E2E_PW_MM_SEED: ${{ secrets.E2E_PW_MM_SEED }} | ||
| CI: 'true' | ||
| steps: | ||
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | ||
| - uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 # v6.0.8 | ||
| - uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 | ||
| with: | ||
| node-version: lts/jod | ||
| cache: pnpm | ||
| - run: pnpm install --frozen-lockfile | ||
| - run: pnpm --filter @cowprotocol/cowswap-e2e-pw exec playwright install --with-deps chromium | ||
| - run: pnpm --filter @cowprotocol/cowswap-e2e-pw exec playwright test --shard=${{ matrix.shard }}/4 | ||
| - if: always() | ||
| uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 | ||
| with: | ||
| name: playwright-report-shard-${{ matrix.shard }} | ||
| path: apps/cowswap-e2e-tests/playwright-report | ||
| retention-days: 14 | ||
|
|
||
| notify-failure: | ||
| name: Notify Slack on Failure | ||
| needs: [full] | ||
| runs-on: ubuntu-latest | ||
| if: always() && failure() | ||
|
|
||
| steps: | ||
| - name: Notify Failure | ||
| run: | | ||
| curl -X POST -H "Content-type: application/json" --data "{\"text\": \"❌ E2E PW nightly failed on \`$REF_NAME\`. <$SERVER_URL/$REPOSITORY/actions/runs/$RUN_ID|See run $RUN_ID on GH>.\"}" "$SLACK_WEBHOOK_URL" | ||
| env: | ||
| SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} | ||
| REF_NAME: ${{ github.ref_name }} | ||
| SERVER_URL: ${{ github.server_url }} | ||
| REPOSITORY: ${{ github.repository }} | ||
| RUN_ID: ${{ github.run_id }} | ||
This file contains hidden or 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,40 @@ | ||
| name: E2E PW smoke | ||
|
|
||
| on: | ||
| pull_request: | ||
| paths: | ||
| - 'apps/cowswap-frontend/**' | ||
| - 'apps/cowswap-e2e-tests/**' | ||
| - 'libs/**' | ||
| - 'package.json' | ||
| - 'pnpm-lock.yaml' | ||
|
shoom3301 marked this conversation as resolved.
|
||
|
|
||
| concurrency: | ||
| group: e2e-pw-smoke-${{ github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
| smoke: | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 15 | ||
| env: | ||
| INTEGRATION_TEST_PRIVATE_KEY: ${{ secrets.INTEGRATION_TEST_PRIVATE_KEY }} | ||
| REACT_APP_NETWORK_URL_11155111: ${{ secrets.REACT_APP_NETWORK_URL_11155111 }} | ||
| E2E_PW_MM_SEED: ${{ secrets.E2E_PW_MM_SEED }} | ||
| CI: 'true' | ||
| steps: | ||
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | ||
|
shoom3301 marked this conversation as resolved.
|
||
| - uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 # v6.0.8 | ||
| - uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 | ||
| with: | ||
| node-version: lts/jod | ||
| cache: pnpm | ||
| - run: pnpm install --frozen-lockfile | ||
| - run: pnpm --filter @cowprotocol/cowswap-e2e-pw exec playwright install --with-deps chromium | ||
| - run: pnpm e2e:smoke | ||
| - if: always() | ||
|
shoom3301 marked this conversation as resolved.
|
||
| uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 | ||
| with: | ||
| name: playwright-report | ||
| path: apps/cowswap-e2e-tests/playwright-report | ||
| retention-days: 7 | ||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.