forked from zaproxy/zaproxy
-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (58 loc) · 2.05 KB
/
run-integration-tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
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@v2
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
-
name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
-
name: Build and push Docker image
uses: docker/build-push-action@v4
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 }}
outputs: "type=image,name=target,\
annotation-index.org.opencontainers.image.source=https://github.com/zaproxy/zaproxy,\
annotation-index.org.opencontainers.image.description=Docker image used for ZAP integration tests.,\
annotation-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