Skip to content

Commit

Permalink
github: run tests with 32-bit arch as well (#350)
Browse files Browse the repository at this point in the history
  • Loading branch information
erikgrinaker committed Dec 15, 2020
1 parent c140037 commit 9e510e5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,16 @@ jobs:
# Some tests, notably TestRandomOperations, are extremely slow in CI
# with the race detector enabled, so we use -short when -race is
# enabled to reduce the number of slow tests, and then run without
# -short with -race disabled for a larger test set.
# -short with -race disabled for a larger test set. The same tests
# are run, just with smaller data sets.
#
# We still run the same tests, just on smaller data sets with -short.
# We also do a 32-bit run. Even though this is executed on a 64-bit
# system, it will use 32-bit instructions and semantics (e.g. 32-bit
# integer overflow).
run: |
go test ./... -mod=readonly -timeout 5m -short -race -coverprofile=coverage.txt -covermode=atomic
go test ./... -mod=readonly -timeout 5m
GOARCH=386 go test ./... -mod=readonly -timeout 5m
- uses: codecov/codecov-action@v1
with:
file: ./coverage.txt
Expand Down

0 comments on commit 9e510e5

Please sign in to comment.