Skip to content

Commit

Permalink
test(action): test for race conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
AtomicFS committed Jan 24, 2024
1 parent b160e01 commit 3db33ea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/go-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
- name: Run go test
run: |
cd action
go test -v -timeout 60m -shuffle=on -covermode=count -coverprofile coverage.out -run ${{ matrix.testregex }} ./...
go test -race -v -timeout 60m -shuffle=on -covermode=atomic -coverprofile coverage.out -run ${{ matrix.testregex }} ./...
go-test:
# Run all remaining light tests
Expand All @@ -58,4 +58,4 @@ jobs:
- name: Run go test
run: |
cd action
go test -v -timeout 60m -shuffle=on -covermode=count -coverprofile coverage.out -skip '(TestLinux|TestEdk2|TestCoreboot)' ./...
go test -race -v -timeout 60m -shuffle=on -covermode=atomic -coverprofile coverage.out -skip '(TestLinux|TestEdk2|TestCoreboot)' ./...
2 changes: 1 addition & 1 deletion Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ tasks:
desc: Run tests
dir: action
cmds:
- go test {{.CLI_ARGS}} -timeout 60m -shuffle=on -covermode=count -coverprofile coverage.out ./...
- go test {{.CLI_ARGS}} -race -timeout 60m -shuffle=on -covermode=atomic -coverprofile coverage.out ./...
- go tool cover -func=coverage.out
- go tool cover -html=coverage.out -o coverage.html

Expand Down

0 comments on commit 3db33ea

Please sign in to comment.