Skip to content

Commit

Permalink
fix up v2 CI
Browse files Browse the repository at this point in the history
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
  • Loading branch information
ericchiang committed Jan 22, 2025
1 parent e05c4c7 commit a571417
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: test
on:
push:
branches:
- v2
pull_request:
branches:
- v2

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
go: ['1.22', '1.23']
name: Linux Go ${{ matrix.go }}
steps:
- uses: actions/checkout@v4
- name: Setup go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
# For awkward reasons we can't actually add a go.mod file for the v2
# branch, because Go enforces that a "v2.x.x" tag has a "v2" prefix.
#
# https://github.com/coreos/go-oidc/issues/230
- name: Setup go module
run: go mod init github.com/coreos/go-oidc
- name: Go get
run: go get ./...
- name: Test
run: go test -v ./...

0 comments on commit a571417

Please sign in to comment.