This repository was archived by the owner on Aug 29, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
Add option to skip 32-bit go test
#412
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,6 +10,7 @@ jobs: | |
| go: [ "1.18.x", "1.19.x" ] | ||
| env: | ||
| COVERAGES: "" | ||
| SKIP32BIT: false | ||
| runs-on: ${{ format('{0}-latest', matrix.os) }} | ||
| name: ${{ matrix.os }} (go ${{ matrix.go }}) | ||
| steps: | ||
|
|
@@ -34,6 +35,13 @@ jobs: | |
| - name: Run repo-specific setup | ||
| uses: ./.github/actions/go-test-setup | ||
| if: hashFiles('./.github/actions/go-test-setup') != '' | ||
| - name: Read config | ||
| if: hashFiles('./.github/workflows/go-test-config.json') != '' | ||
| shell: bash | ||
| run: | | ||
| if jq -re .skip32bit ./.github/workflows/go-test-config.json; then | ||
| echo "SKIP32BIT=true" >> $GITHUB_ENV | ||
| fi | ||
| - name: Run tests | ||
| uses: protocol/[email protected] | ||
| with: | ||
|
|
@@ -42,7 +50,7 @@ jobs: | |
| # this means ./B's coverage will be significantly higher than 0%. | ||
| run: go test -v -shuffle=on -coverprofile=module-coverage.txt -coverpkg=./... ./... | ||
| - name: Run tests (32 bit) | ||
| if: ${{ matrix.os != 'macos' }} # can't run 32 bit tests on OSX. | ||
| if: matrix.os != 'macos' && env.SKIP32BIT == 'false' # can't run 32 bit tests on OSX. | ||
| uses: protocol/[email protected] | ||
| env: | ||
| GOARCH: 386 | ||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.