Skip to content
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 tests using Go 1.18 #2093

Merged
merged 2 commits into from Aug 14, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
11 changes: 10 additions & 1 deletion .github/workflows/tests.yaml
Expand Up @@ -23,7 +23,7 @@ on:
permissions: read-all

env:
GO_VERSION: 1.17
GO_VERSION: 1.18

jobs:
unit-tests:
Expand Down Expand Up @@ -60,12 +60,18 @@ jobs:
go-version: ${{ env.GO_VERSION }}
check-latest: true
- name: Run Go tests
env:
# See #2091 for the issue describing this temp workaround.
GODEBUG: x509sha1=1
run: go test -covermode atomic -coverprofile coverage.txt $(go list ./... | grep -v third_party/)
- name: Upload Coverage Report
uses: codecov/codecov-action@81cd2dc8148241f03f5839d295e000b8f761e378 # v2.1.0
with:
env_vars: OS
- name: Run Go tests w/ `-race`
env:
# See #2091 for the issue describing this temp workaround.
GODEBUG: x509sha1=1
if: ${{ runner.os == 'Linux' }}
run: go test -race $(go list ./... | grep -v third_party/)

Expand Down Expand Up @@ -103,6 +109,9 @@ jobs:
kind create cluster

- name: Run end-to-end tests
env:
# See #2091 for the issue describing this temp workaround.
GODEBUG: x509sha1=1
run: ./test/e2e_test.sh

- name: Collect diagnostics
Expand Down