race.yml 664 B

123456789101112131415161718192021222324252627282930313233343536
  1. name: Go race detector
  2. on:
  3. push:
  4. branches:
  5. - main
  6. - next
  7. paths:
  8. - '.github/workflows/race.yml'
  9. - 'service/**'
  10. pull_request:
  11. branches:
  12. - next
  13. paths:
  14. - '.github/workflows/race.yml'
  15. - 'service/**'
  16. permissions:
  17. contents: read
  18. jobs:
  19. race:
  20. runs-on: ubuntu-latest
  21. steps:
  22. - name: Checkout
  23. uses: actions/checkout@v4
  24. - name: Setup Go
  25. uses: actions/setup-go@v5
  26. with:
  27. go-version-file: 'service/go.mod'
  28. cache: true
  29. cache-dependency-path: 'service/go.mod'
  30. - name: Run race detector
  31. run: make -wC service unittests-race