-
Notifications
You must be signed in to change notification settings - Fork 242
Run test pipeline once #1072
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Run test pipeline once #1072
Changes from 2 commits
d1c15b9
d42f14b
c115af5
74561a0
15ed4d8
c7874fe
bbf383b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,6 +20,11 @@ jobs: | |
env: | ||
GO111MODULE: "on" | ||
GOFLAGS: "-mod=readonly" | ||
# The race detector adds considerable runtime overhead. To save time on | ||
# pull requests, only run this step for a single job in the matrix. For | ||
# all other workflow triggers (e.g., pushes to a release branch) run | ||
# this step for the whole matrix. | ||
RUN_RACE_TESTS: ${{ github.event_name != 'pull_request' || (matrix.go == '1.23' && matrix.os == 'ubuntu') }} | ||
steps: | ||
- uses: actions/setup-go@v5 | ||
with: | ||
|
@@ -44,26 +49,17 @@ jobs: | |
run: make build | ||
- name: Vet | ||
run: make vet | ||
- name: Check go.mod Tidiness | ||
run: make mod-tidy | ||
Comment on lines
-47
to
-48
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why was this removed? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The step was running only on go1.21 (so not at all). I suppose it was setup like this to save CI time? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No, this is required to make sure that our lowest supported Go version actually works 😅 |
||
if: ${{ matrix.go == '1.21' }} | ||
- name: Test | ||
run: make test-coverage | ||
- name: Test${{ env.RUN_RACE_TESTS == 'true' && ' (with race detection)' || '' }} | ||
run: ${{ env.RUN_RACE_TESTS == 'true' && 'make test-race-coverage' || 'make test-coverage' }} | ||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@18283e04ce6e62d37312384ff67231eb8fd56d24 # [email protected] | ||
with: | ||
directory: .coverage | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
- name: Test (with race detection) | ||
run: make test-race | ||
# The race detector adds considerable runtime overhead. To save time on | ||
# pull requests, only run this step for a single job in the matrix. For | ||
# all other workflow triggers (e.g., pushes to a release branch) run | ||
# this step for the whole matrix. | ||
if: ${{ github.event_name != 'pull_request' || (matrix.go == '1.23' && matrix.os == 'ubuntu') }} | ||
if: ${{ !matrix.race }} | ||
cursor[bot] marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
timeout-minutes: 15 | ||
strategy: | ||
matrix: | ||
go: ["1.24", "1.23", "1.22"] | ||
os: [ubuntu, windows, macos] | ||
fail-fast: false | ||
fail-fast: false | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.