name: Go correctness and per-file coverage on: [push, pull_request] jobs: verify: runs-on: ubuntu-latest timeout-minutes: 20 steps: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: go-version: '1.26.1' - run: sudo apt-get update && sudo apt-get install -y jq ruby webp - run: go vet ./... - run: test -z "$(gofmt -l cmd internal)" - run: LOCAL_COVERAGE=true scripts/test-local.sh - run: docker run --rm --entrypoint /bin/promtool -v "$PWD/charts/messenger/files/observability:/rules:ro" -v "$PWD/student-tests/alerts.test.yaml:/tests.yaml:ro" prom/prometheus:v3.5.0 test rules /tests.yaml - uses: actions/upload-artifact@v4 if: always() with: name: coverage path: coverage/summary.json