Files
grafana-zabbix/.github/workflows/compatibility-72.yml
Zoltán Bedi aed76bfaf8 Remove id-token permission for compatibility workflows (#2021)
The read value for id-token is not available. This PR fixes that.
2025-05-05 15:14:58 +02:00

40 lines
936 B
YAML

name: zabbix_72
run-name: Compatibility with Zabbix 7.2 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/zabbix72/docker-compose.yml up -d
# Wait for Zabbix to be ready
sleep 30
- name: Run integration tests
env:
INTEGRATION_TEST72: '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/zabbix72/docker-compose.yml down -v