Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 20 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,23 @@ jobs:
run: go build ./...

- name: Test (race detector)
run: go test -race -coverprofile=coverage.out ./...
run: go test -race -coverprofile=coverage.out ./...

ci-ok:
name: CI OK
runs-on: ubuntu-latest
needs: [build]
if: always()
steps:
- name: Verify all CI jobs succeeded
run: |
# Gate estável para branch protection: o nome deste job não depende da
# matrix, então não quebra quando a versão do Go mudar.
# 'if: always()' é obrigatório — sem ele o job seria "skipped" quando
# 'build' falha, e o GitHub trata skipped como satisfeito.
RESULT="${{ needs.build.result }}"
if [ "$RESULT" != "success" ]; then
echo "ERROR: job 'build' concluiu como '$RESULT'"
exit 1
fi
echo "✓ Todos os jobs de CI passaram"