Skip to content

Undercut option to duplicate strategy flow #488

Undercut option to duplicate strategy flow

Undercut option to duplicate strategy flow #488

Workflow file for this run

name: E2E Tests
on:
pull_request:
branches: [main]
types: [opened, reopened, synchronize, ready_for_review]
jobs:
e2e:
timeout-minutes: 60
runs-on: ubuntu-latest
permissions:
# Give the default GITHUB_TOKEN write permission to commit and push (see auto-commit below)
contents: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20
- name: Install dependencies
run: yarn
- name: Install Playwright Browsers
run: yarn playwright install --with-deps
- name: Run Playwright tests
run: yarn e2e
env:
VITE_CHAIN_RPC_URL: ${{ secrets.VITE_CHAIN_RPC_URL }}
VITE_CARBON_API_KEY: ${{ secrets.VITE_CARBON_API_KEY }}
VITE_DEV_MODE: true
TENDERLY_ACCOUNT: bancor
TENDERLY_PROJECT: carbon-test-forks
TENDERLY_ACCESS_KEY: ${{ secrets.VITE_TENDERLY_ACCESS_KEY }}
CI: true
DRAFT: ${{ github.event.pull_request.draft }}
- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30
- name: Import GPG key
id: import-gpg
if: github.event.pull_request.draft == false
uses: crazy-max/ghaction-import-gpg@v6
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.GPG_PASSPHRASE }}
git_user_signingkey: true
git_commit_gpgsign: true
- name: Commit changes
if: github.event.pull_request.draft == false
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: '[CI] Update Screenshots'
commit_user_name: ${{ steps.import-gpg.outputs.name }}
commit_user_email: ${{ steps.import-gpg.outputs.email }}