Skip to content

Commit

Permalink
Run tests using Go 1.18 (sigstore#2093)
Browse files Browse the repository at this point in the history
* Run tests using Go 1.18

Signed-off-by: Jason Hall <jason@chainguard.dev>

* Suppress SHA1_RSA failures, these only occur in tests.

We should fix this with new testdata but we're blocked on an
upstream change.

Signed-off-by: Dan Lorenc <dlorenc@chainguard.dev>

Signed-off-by: Jason Hall <jason@chainguard.dev>
Signed-off-by: Dan Lorenc <dlorenc@chainguard.dev>
Co-authored-by: Dan Lorenc <dlorenc@chainguard.dev>
  • Loading branch information
2 people authored and Magnus Bengtsson committed Aug 21, 2022
1 parent 7a21aa1 commit e70ebf4
Showing 1 changed file with 10 additions and 1 deletion.
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

0 comments on commit e70ebf4

Please sign in to comment.