name: zabbix_60 run-name: Compatibility with Zabbix 6.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@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 with: persist-credentials: false - uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5.6.0 - name: Start Zabbix environment run: | docker compose -f devenv/zabbix60/docker-compose.yml up -d # Wait for Zabbix to be ready sleep 30 - name: Run integration tests env: INTEGRATION_TEST60: '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/zabbix60/docker-compose.yml down -v