Files
zitadel/.github/workflows/acceptance-tests.yml
2024-10-16 17:11:51 +02:00

36 lines
1.1 KiB
YAML

name: Acceptance Tests
on: pull_request
jobs:
acceptance-tests:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/*
- name: Run Docker Compose and Install Dependencies in Parallel
run: |
echo "Start docker-compose in the background"
docker-compose -f ./acceptance/docker-compose.yaml up -d &
echo "Install node_modules in the foreground"
npm install -g pnpm && pnpm install
echo "Generate and create a production build in the background"
pnpm build &
echo "Install Playwright with browsers in the background"
pnpm exec playwright install --with-deps &
echo "Wait for all background processes to complete"
wait
- name: Run Playwright tests
run: pnpm exec playwright test
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: playwright-report
path: playwright-report/
retention-days: 30