Skip to content

Build and Run Integration Tests Docker #1083

Build and Run Integration Tests Docker

Build and Run Integration Tests Docker #1083

name: Build and Run Integration Tests Docker
on:
workflow_dispatch:
schedule:
# Every day at the 1am
- cron: '0 1 * * *'
jobs:
publish:
name: Build, Push and Run Docker Image
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
-
name: Set up QEMU
uses: docker/setup-qemu-action@v3
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
-
name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: docker
file: docker/Dockerfile-tests
platforms: linux/amd64,linux/arm64
push: true
provenance: false
tags: |
ghcr.io/zaproxy/zaproxy-tests
secrets: |
webswing_url=${{ secrets.WEBSWING_URL }}
annotations: |
index:org.opencontainers.image.source=https://github.com/zaproxy/zaproxy
index:org.opencontainers.image.description=Docker image used for ZAP integration tests.
index:org.opencontainers.image.licenses=Apache-2.0
-
name: Run install tests
run: docker run --rm -t ghcr.io/zaproxy/zaproxy-tests wrk/install_tests.sh
-
name: Run python tests
run: docker run --rm -t ghcr.io/zaproxy/zaproxy-tests wrk/python_tests.sh
-
name: Automation Framework context tests
run: docker run --rm -t ghcr.io/zaproxy/zaproxy-tests wrk/af_context_tests.sh
-
name: Automation Framework plan tests
run: docker run --rm -t ghcr.io/zaproxy/zaproxy-tests wrk/af_plan_tests.sh
-
# Run these last as they are most likely to fail
name: Run baseline tests
run: docker run --rm -t ghcr.io/zaproxy/zaproxy-tests wrk/baseline_tests.sh