Skip to content

tests - fix coraza POST test #85

tests - fix coraza POST test

tests - fix coraza POST test #85

Workflow file for this run

name: Tests
on:
push:
branches: [dev, main]
jobs:
setup:
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@v3
- name: Get BW tag
run: |
if [ "$GITHUB_REF" = "refs/heads/main" ] ; then
echo "BW_TAG=master" >> $GITHUB_ENV
else
echo "BW_TAG=dev" >> $GITHUB_ENV
fi
- name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}
- name: Pull and build BW
run: ./.tests/bw.sh "${{ env.BW_TAG }}"
- name: Run ClamAV tests
run: ./.tests/clamav.sh
- name: Run Coraza tests
run: ./.tests/coraza.sh
- name: Run CrowdSec tests
run: ./.tests/crowdsec.sh
- name: Run VirusTotal tests
run: ./.tests/virustotal.sh
env:
VIRUSTOTAL_API_KEY: ${{ secrets.VIRUSTOTAL_API_KEY }}
- name: Build and push APIs
if: env.BW_TAG == 'master'
run: ./.tests/build-push.sh