Build(deps): Bump cross-spawn from 7.0.3 to 7.0.6 in /frontend #1115
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
name: E2E-Test Pipeline | |
on: | |
workflow_dispatch: | |
push: | |
tags: | |
- "**" | |
branches: | |
- main | |
pull_request: | |
jobs: | |
e2e-tests: | |
timeout-minutes: 30 | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
- name: Setup up cypress env vars | |
working-directory: . | |
env: | |
BRANCH_NAME: ${{ github.head_ref || github.ref_name }} | |
run: | | |
git log --oneline -10 | |
echo "===== COMMIT INFO =====" | |
touch cypress.env | |
echo "COMMIT_INFO_BRANCH=$BRANCH_NAME" >> cypress.env | |
echo "COMMIT_INFO_MESSAGE=$(git log -1 --pretty=%B | head -n 1)" >> cypress.env | |
echo "COMMIT_INFO_EMAIL=$(git log -1 --pretty=%ae)" >> cypress.env | |
echo "COMMIT_INFO_AUTHOR=$(git log -1 --pretty=%an)" >> cypress.env | |
echo "COMMIT_INFO_SHA=$(git rev-parse HEAD)" >> cypress.env | |
echo "COMMIT_INFO_TIMESTAMP=$(git log -1 --pretty=%ct)" >> cypress.env | |
echo "COMMIT_INFO_REMOTE=$(git remote get-url origin)" >> cypress.env | |
cat cypress.env | |
- name: Build Test Runner Image | |
run: docker build -f ./e2e/Dockerfile -t zwoo-e2e . | |
- name: Prepare Container | |
run: docker run -d --privileged -v ./frontend/uploads:/app/frontend/uploads --name test-runner zwoo-e2e | |
- name: Run E2E-Tests | |
run: docker exec -i test-runner sh /app/e2e/run-tests.sh ${{ secrets.CYPRESS_KEY }} | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: e2e-artifacts | |
path: | | |
./frontend/uploads |