Skip to content

chore(deps): bump cypress-io/github-action from 6 to 7 #157

chore(deps): bump cypress-io/github-action from 6 to 7

chore(deps): bump cypress-io/github-action from 6 to 7 #157

Workflow file for this run

name: Test
on:
push:
pull_request:
branches: [ main, master ]
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
exist-version: [6.2.0, release]
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Build Docker image
run: docker build --build-arg EXIST_VERSION=${{ matrix.exist-version}} -t jinks-templates-test .
- name: Start test container
run: |
docker run -d \
--name jinks-templates-test-container \
-p 8080:8080 \
-p 8443:8443 \
jinks-templates-test
- name: Wait for eXist-db to be ready
timeout-minutes: 1
run: |
echo "Waiting for eXist-db to start..."
timeout=60
counter=0
while [ $counter -lt $timeout ]; do
if curl -f http://localhost:8080/exist/ > /dev/null 2>&1; then
echo "✅ eXist-db is ready!"
break
fi
echo "⏳ Waiting for eXist-db... ($counter/$timeout seconds)"
sleep 5
counter=$((counter + 5))
done
- name: Run Cypress e2e test
uses: cypress-io/github-action@v7
- name: Cleanup containers
if: always()
run: |
echo "Cleaning up containers..."
docker stop jinks-templates-test-container || true
docker rm jinks-templates-test-container || true
- name: Cleanup images
if: always()
run: |
echo "Cleaning up images..."
docker rmi jinks-templates-test || true