feat: web-ui in monorepo #27
Workflow file for this run
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: | |
push: | |
branches: | |
- main | |
paths: | |
- "web/webapp/**" | |
pull_request: | |
branches: | |
- main | |
paths: | |
- "web/webapp/**" | |
types: | |
- opened | |
- synchronize | |
- reopened | |
- ready_for_review | |
name: e2e-tests | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
e2e-tests: | |
name: End-to-end tests | |
if: github.event.pull_request.draft == false | |
runs-on: buildjet-16vcpu-ubuntu-2204 | |
services: | |
redis: | |
image: redis | |
options: >- | |
--health-cmd "redis-cli ping" | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
ports: | |
- 6379:6379 | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v2 | |
- name: Setup and build | |
uses: ./.github/actions/setup-and-build | |
- name: Cache Cypress | |
uses: actions/cache@v2 | |
with: | |
path: ~/.cache/Cypress | |
key: cypress-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
cypress- | |
- name: Install Cypress | |
run: | | |
(cd web/webapp && npx cypress install) | |
# - name: Build relayer | |
# run: | | |
# (cd relayer && pnpm install && pnpm build) | |
# - name: Build webapp | |
# run: | | |
# (cd web/webapp && pnpm install && pnpm build) | |
- name: Run end-to-end tests | |
run: | | |
source ./scripts/devenv.sh | |
cd web/webapp | |
pnpm run test:e2e |