Zabbix 7.4 compatibility tests (#2053)

* Resolves issue (#2051)
This commit is contained in:
Christos Diamantis
2025-07-09 16:44:17 +03:00
committed by GitHub
parent e65793f3be
commit 04ef3774b0
7 changed files with 1268 additions and 0 deletions

39
.github/workflows/compatibility-74.yml vendored Normal file
View File

@@ -0,0 +1,39 @@
name: zabbix_74
run-name: Compatibility with Zabbix 7.4 test
permissions:
contents: read
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
jobs:
compatibility-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: actions/setup-go@v5.3.0
- name: Start Zabbix environment
run: |
docker compose -f devenv/zabbix74/docker-compose.yml up -d
# Wait for Zabbix to be ready
sleep 30
- name: Run integration tests
env:
INTEGRATION_TEST74: 'true'
ZABBIX_URL: 'http://localhost:8188/api_jsonrpc.php'
ZABBIX_USER: 'Admin'
ZABBIX_PASSWORD: 'zabbix'
run: go test -v ./pkg/zabbixapi/...
- name: Cleanup
if: always()
run: docker compose -f devenv/zabbix74/docker-compose.yml down -v