fix: data races detected by -race in SessionManager.Save and poller test #281
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: test | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version: "1.24" | |
| - name: build | |
| run: go build -o /tmp/odek-test github.com/BackendStack21/kode/cmd/odek && chmod +x /tmp/odek-test | |
| - name: test | |
| run: ODEK_BINARY=/tmp/odek-test go test ./... -short -race -coverprofile=coverage.out -covermode=atomic -count=1 | |
| - name: coverage | |
| run: go tool cover -func=coverage.out | |
| - name: vet | |
| run: go vet ./... |