Skip to content

Commit

Permalink
experimental: build/deploy before running cypress action
Browse files Browse the repository at this point in the history
  • Loading branch information
sgfost committed Jul 23, 2024
1 parent be0dda1 commit e64b4f3
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,25 @@ on:
branches: [ main ]

jobs:
build:
e2e:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: deploy services in e2e mode
run: make deploy-e2e

- name: run e2e tests
uses: cypress-io/github-action@v6
with:
working-directory: e2e
build: make build-e2e
start: make deploy-e2e
wait-on: "http://localhost:8000"
wait-on-timeout: 300

- name: display service logs
if: failure()
run: docker compose -f docker-compose.yml -f e2e.yml logs

- name: upload cypress videos
if: failure()
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit e64b4f3

Please sign in to comment.