Skip to content

Commit 06a5a86

Browse files
committed
fix up v2 CI
There are some awkward issues with go modules here, since newer versions of the Go tool require a go.mod file, but in the past we broke users by adding one: #230
1 parent e05c4c7 commit 06a5a86

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

Diff for: .github/workflows/test.yaml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: test
2+
on:
3+
push:
4+
branches:
5+
- v2
6+
pull_request:
7+
branches:
8+
- v2
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
strategy:
14+
matrix:
15+
go: ['1.22', '1.23']
16+
name: Linux Go ${{ matrix.go }}
17+
steps:
18+
- uses: actions/checkout@v4
19+
- name: Setup go
20+
uses: actions/setup-go@v5
21+
with:
22+
go-version: ${{ matrix.go }}
23+
# For awkward reasons we can't actually add a go.mod file for the v2
24+
# branch, because Go enforces that a "v2.x.x" tag has a "v2" prefix.
25+
#
26+
# https://github.com/coreos/go-oidc/issues/230
27+
- name: Setup go module
28+
run: go mod init github.com/coreos/go-oidc
29+
- name: Go get
30+
run: go get ./...
31+
- name: Test
32+
run: go test -v ./...

0 commit comments

Comments
 (0)