| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- name: Go race detector
- on:
- push:
- branches:
- - main
- - next
- paths:
- - '.github/workflows/race.yml'
- - 'service/**'
- pull_request:
- branches:
- - next
- paths:
- - '.github/workflows/race.yml'
- - 'service/**'
- permissions:
- contents: read
- jobs:
- race:
- runs-on: ubuntu-latest
- steps:
- - name: Checkout
- uses: actions/checkout@v4
- - name: Setup Go
- uses: actions/setup-go@v5
- with:
- go-version-file: 'service/go.mod'
- cache: true
- # Keyed per workflow, as each builds different artifacts.
- cache-dependency-path: |
- service/go.mod
- service/go.sum
- .github/workflows/race.yml
- - name: Run race detector
- run: make -wC service unittests-race
|