Skip to content

Run QA tests with Go 1.26 (#604) #1268

Run QA tests with Go 1.26 (#604)

Run QA tests with Go 1.26 (#604) #1268

Workflow file for this run

name: 🧪 QA Tests
permissions:
contents: read
on:
push: {}
workflow_call: {}
jobs:
qa-tests:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout zen-demo-go
uses: actions/checkout@v5
with:
persist-credentials: false
repository: Aikido-demo-apps/zen-demo-go
path: zen-demo-go
submodules: true
- name: Set up Go
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
with:
go-version: 1.26
cache-dependency-path: zen-demo-go/go.sum
- name: Use local firewall-go
env:
GOPRIVATE: github.com/AikidoSec/*
run: |
cd zen-demo-go
go get github.com/AikidoSec/firewall-go@$GITHUB_SHA
go get github.com/AikidoSec/firewall-go/instrumentation/sources/gin-gonic/gin@$GITHUB_SHA
go mod tidy
sed -i "s|github.com/AikidoSec/firewall-go/cmd/zen-go@[^ ]*|github.com/AikidoSec/firewall-go/cmd/zen-go@$GITHUB_SHA|" Dockerfile
- name: Run Firewall QA Tests
uses: AikidoSec/firewall-tester-action@v1.0.16
with:
dockerfile_path: ./zen-demo-go/Dockerfile
app_port: 3000
sleep_before_test: 10
test_timeout: 900
skip_tests: test_user_ip_from_proxy