MeetUp/.github/workflows/tests.yml
Dominik Stahl d17b7e7aa9
Some checks failed
container-scan / Container Scan (pull_request) Successful in 2m13s
docker-build / docker (pull_request) Successful in 4m32s
tests / Tests (pull_request) Failing after 6m58s
fix(tests): start server for e2e tests
2025-05-13 10:58:01 +02:00

41 lines
1,003 B
YAML

name: tests
on:
push:
branches:
- main
- renovate/*
pull_request:
jobs:
tests:
name: Tests
runs-on: docker
container:
image: cypress/browsers:latest
options: --user 1001
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Enable corepack
run: corepack enable
- name: Cypress run (e2e)
uses: https://github.com/cypress-io/github-action@v6
with:
build: yarn run build
start: yarn cypress:start_server
e2e: true
wait-on: 'http://localhost:3000'
- name: Cypress run (component)
uses: https://github.com/cypress-io/github-action@v6
with:
build: yarn run build
start: yarn cypress:start_server
component: true
- name: Clean up Docker
if: always()
run: |
docker system prune -af --filter "until=24h"
docker volume prune -f