Skip to content

Commit 4068961

Browse files
authored
ci: add a check that go package is not broken (#71)
1 parent 2b6e24d commit 4068961

File tree

7 files changed

+135
-310
lines changed

7 files changed

+135
-310
lines changed

.github/workflows/test.yaml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Test
2+
on:
3+
pull_request:
4+
jobs:
5+
test:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
9+
- uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed
10+
with:
11+
go-version: 1.23.x
12+
- name: Check package is correct
13+
run: make test

Makefile

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.PHONY: test
2+
test:
3+
@echo "Running tests..."
4+
@go test -v ./go/...

go.mod

+20-2
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,42 @@
11
module github.com/pomerium/enterprise-client
22

3-
go 1.21
3+
go 1.23.0
4+
45
toolchain go1.23.1
56

67
require (
8+
github.com/cncf/xds/go v0.0.0-20240905190251-b4127c9b8d78
79
github.com/envoyproxy/go-control-plane/envoy v1.32.2
810
github.com/envoyproxy/protoc-gen-validate v1.1.0
911
github.com/golang/protobuf v1.5.4
1012
github.com/pomerium/pomerium v0.28.0
1113
github.com/pseudomuto/protoc-gen-doc v1.5.1
14+
google.golang.org/api v0.203.0
1215
google.golang.org/grpc v1.69.2
1316
google.golang.org/protobuf v1.35.2
1417
)
1518

1619
require (
1720
cel.dev/expr v0.16.2 // indirect
21+
cloud.google.com/go/auth v0.10.0 // indirect
22+
cloud.google.com/go/auth/oauth2adapt v0.2.5 // indirect
23+
cloud.google.com/go/compute/metadata v0.5.2 // indirect
1824
github.com/Masterminds/semver v1.5.0 // indirect
1925
github.com/Masterminds/sprig v2.15.0+incompatible // indirect
2026
github.com/aokoli/goutils v1.0.1 // indirect
2127
github.com/caddyserver/certmagic v0.21.4 // indirect
2228
github.com/caddyserver/zerossl v0.1.3 // indirect
2329
github.com/cenkalti/backoff/v4 v4.3.0 // indirect
24-
github.com/cncf/xds/go v0.0.0-20240905190251-b4127c9b8d78 // indirect
30+
github.com/felixge/httpsnoop v1.0.4 // indirect
2531
github.com/go-jose/go-jose/v3 v3.0.3 // indirect
32+
github.com/go-logr/logr v1.4.2 // indirect
33+
github.com/go-logr/stdr v1.2.2 // indirect
2634
github.com/gogo/protobuf v1.3.2 // indirect
35+
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
36+
github.com/google/s2a-go v0.1.8 // indirect
2737
github.com/google/uuid v1.6.0 // indirect
38+
github.com/googleapis/enterprise-certificate-proxy v0.3.4 // indirect
39+
github.com/googleapis/gax-go/v2 v2.13.0 // indirect
2840
github.com/hashicorp/errwrap v1.1.0 // indirect
2941
github.com/hashicorp/go-multierror v1.1.1 // indirect
3042
github.com/hashicorp/go-set/v3 v3.0.0 // indirect
@@ -45,11 +57,17 @@ require (
4557
github.com/rs/zerolog v1.33.0 // indirect
4658
github.com/stretchr/testify v1.10.0 // indirect
4759
github.com/zeebo/blake3 v0.2.4 // indirect
60+
go.opencensus.io v0.24.0 // indirect
61+
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.54.0 // indirect
62+
go.opentelemetry.io/otel v1.31.0 // indirect
63+
go.opentelemetry.io/otel/metric v1.31.0 // indirect
64+
go.opentelemetry.io/otel/trace v1.31.0 // indirect
4865
go.uber.org/multierr v1.11.0 // indirect
4966
go.uber.org/zap v1.27.0 // indirect
5067
golang.org/x/crypto v0.28.0 // indirect
5168
golang.org/x/mod v0.20.0 // indirect
5269
golang.org/x/net v0.30.0 // indirect
70+
golang.org/x/oauth2 v0.23.0 // indirect
5371
golang.org/x/sync v0.8.0 // indirect
5472
golang.org/x/sys v0.26.0 // indirect
5573
golang.org/x/text v0.19.0 // indirect

go.sum

+86
Large diffs are not rendered by default.

go/pb/audit_svc.pb.go

-288
This file was deleted.

go/proto_test.go

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package go_test
2+
3+
import (
4+
"testing"
5+
6+
"github.com/pomerium/enterprise-client/go/pb"
7+
)
8+
9+
// TestProto tests the proto package can be imported.
10+
func TestProto(*testing.T) {
11+
_ = pb.Settings{}
12+
}

0 commit comments

Comments
 (0)