Skip to content

Commit

Permalink
ci: add e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jooola committed Oct 12, 2022
1 parent 59b3c25 commit d0459d6
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: End-to-end

on:
push:
branches: [main]
pull_request:
branches: [main]
paths:
- .github/workflows/e2e.yml
- e2e/**

jobs:
test:
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v3

- run: |
cp -n .env.dev .env
docker compose -f docker-compose.yml pull --quiet
docker compose -f docker-compose.yml run --rm api libretime-api migrate
docker compose -f docker-compose.yml up -d
- uses: cypress-io/github-action@v4
with:
working-directory: e2e
wait-on: http://localhost:8080

- if: failure()
run: docker compose logs

0 comments on commit d0459d6

Please sign in to comment.