Skip to content

Heisenbug 2024 autumn #23

Heisenbug 2024 autumn

Heisenbug 2024 autumn #23

Workflow file for this run

name: e2e
on:
pull_request:
types: [opened, reopened, synchronize]
jobs:
e2e:
runs-on: ubuntu-latest
env:
ARCH: amd64
steps:
- name: Setup java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '21'
- name: Checkout code
uses: actions/checkout@v4
- name: Build backend
run: |
bash ./gradlew jibDockerBuild -x :rococo-e2e:test
docker image ls
- name: Pull browsers
run: |
docker pull selenoid/vnc_chrome:125.0
- name: Run e2e tests
run: |
docker compose -f docker-compose-e2e.yml up -d
docker wait rococo-e2e
exit_code=$(docker inspect -f '{{.State.ExitCode}}' rococo-e2e)
echo "e2e_exit_code=$exit_code" >> $GITHUB_OUTPUT
docker logs rococo-e2e
docker compose -f docker-compose-e2e.yml down
if ["exit_code" -eq "0"]; then
echo "Tests Passed!"
exit 0
else
echo "Tests Failed!"
exit 1
fi