✅ test: Add back e2e tests CHA-116 #1577
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
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
pull_request: | |
merge_group: | |
name: E2E | |
jobs: | |
e2e-vite: | |
name: Playwright E2E @evmts/example-vite | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
submodules: recursive | |
- name: Run @evmts/vite-example tests | |
run: docker-compose up --build --abort-on-container-exit --exit-code-from e2e e2e | |
env: | |
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }} | |
ANVIL_FORK_URL_1: ${{ secrets.RPC_URL_MAINNET }} | |
- name: 'Upload test-results artifacts' | |
uses: actions/upload-artifact@v3 | |
if: failure() | |
with: | |
name: test-results | |
path: e2e/test-results/**/* | |
retention-days: 15 | |
- name: 'Upload playwright-report' | |
uses: actions/upload-artifact@v3 | |
if: failure() | |
with: | |
name: test-results | |
path: e2e/playwright-report/**/* | |
retention-days: 15 | |
- name: Shutdown Anvil | |
run: pkill -2 anvil | |