name: zabbix_50 run-name: Compatibility with Zabbix 5.0 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@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 with: persist-credentials: false - uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6.2.0 with: go-version: '1.25' - name: Start Zabbix environment run: | docker compose -f devenv/zabbix50/docker-compose.yml up -d # Wait for Zabbix to be ready sleep 30 - name: Run integration tests env: INTEGRATION_TEST50: 'true' ZABBIX_URL: 'https://localhost/api_jsonrpc.php' ZABBIX_USER: 'Admin' ZABBIX_PASSWORD: 'zabbix' run: go test -v ./pkg/zabbixapi/... - name: Cleanup if: always() run: docker compose -f devenv/zabbix50/docker-compose.yml down -v