Skip to content

Commit

Permalink
Enable race detectors in GH workflow (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
chudilka1 authored Jul 22, 2024
1 parent 579f5cf commit 11d92a7
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
13 changes: 12 additions & 1 deletion .github/workflows/go.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@ jobs:
go build -v ./...
go test -v ./... -coverpkg=./... -coverprofile=ocr2_decryptionplugin_coverage.txt
- name: Race test OCR2 plugin
working-directory: ./go/ocr2/decryptionplugin
run: |
go test -race -v ./... -coverpkg=./... -coverprofile=ocr2_decryptionplugin_race_coverage.txt
- name: Download npm deps
working-directory: ./js/tdh2
run: npm install
Expand All @@ -75,6 +80,11 @@ jobs:
run: |
go build -v ./...
go test -v ./... -coverpkg=./... -coverprofile=tdh_coverage.txt
- name: Race test TDH2
working-directory: ./go/tdh2
run: |
go test -race -v ./... -coverpkg=./... -coverprofile=tdh_race_coverage.txt
- name: Upload Go test reports
if: always()
Expand All @@ -83,7 +93,9 @@ jobs:
name: go-test-results
path: |
./go/ocr2/decryptionplugin/ocr2_decryptionplugin_coverage.txt
./go/ocr2/decryptionplugin/ocr2_decryptionplugin_race_coverage.txt
./go/tdh2/tdh_coverage.txt
./go/tdh2/tdh_race_coverage.txt
sonar-scan:
Expand Down Expand Up @@ -124,4 +136,3 @@ jobs:
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}

5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@
*report.xml
*report.txt
*report.json
*.out
*.out

# logs
*.log

0 comments on commit 11d92a7

Please sign in to comment.