Skip to content

Commit

Permalink
chore: upgrade golang packages and github worfklow
Browse files Browse the repository at this point in the history
  • Loading branch information
wintermi committed Jun 11, 2024
1 parent a2c4d0f commit a27fdbf
Show file tree
Hide file tree
Showing 5 changed files with 105 additions and 116 deletions.
21 changes: 9 additions & 12 deletions .github/workflows/go.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,13 @@ jobs:
strategy:
matrix:
go-version:
- 1.20.14
- 1.21.7
- 1.22.0
- 1.21.11
- 1.22.4

steps:
- uses: actions/checkout@v4.1.1
- uses: actions/checkout@v4.1.6
- name: Setup Go ${{ matrix.go-version }}
uses: actions/setup-go@v5.0.0
uses: actions/setup-go@v5.0.1
with:
go-version: ${{ matrix.go-version }}

Expand All @@ -44,15 +43,13 @@ jobs:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.1.1
- uses: actions/checkout@v4.1.6
- name: Setup Go
uses: actions/setup-go@v5.0.0
uses: actions/setup-go@v5.0.1
with:
go-version: 1.20.14
go-version: 1.21.11
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v3.7.0
uses: golangci/golangci-lint-action@v6.0.1
with:
version: v1.53.3
skip-pkg-cache: true
skip-build-cache: true
version: v1.59.0
args: --timeout=10m
8 changes: 4 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,16 @@ jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.1.1
- uses: actions/checkout@v4.1.6
with:
fetch-depth: 0
- run: git fetch --force --tags
- name: Setup Go
uses: actions/setup-go@v5.0.0
uses: actions/setup-go@v5.0.1
with:
go-version: 1.20.14
go-version: 1.21.11
- name: Execute GoReleaser
uses: goreleaser/goreleaser-action@v5.0.0
uses: goreleaser/goreleaser-action@v5.1.0
if: startsWith(github.ref, 'refs/tags/')
with:
distribution: goreleaser
Expand Down
2 changes: 0 additions & 2 deletions .mise.toml

This file was deleted.

60 changes: 31 additions & 29 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,51 +1,53 @@
module github.com/wintermi/ocr-runner

go 1.20
go 1.21

toolchain go1.22.4

require (
cloud.google.com/go/documentai v1.24.0
cloud.google.com/go/documentai v1.30.0
cloud.google.com/go/vision v1.2.0
cloud.google.com/go/vision/v2 v2.7.6
github.com/rs/zerolog v1.32.0
cloud.google.com/go/vision/v2 v2.8.2
github.com/rs/zerolog v1.33.0
)

require (
cloud.google.com/go/compute v1.23.4 // indirect
cloud.google.com/go/compute/metadata v0.2.3 // indirect
cloud.google.com/go/longrunning v0.5.5 // indirect
cloud.google.com/go/auth v0.5.1 // indirect
cloud.google.com/go/auth/oauth2adapt v0.2.2 // indirect
cloud.google.com/go/compute/metadata v0.3.0 // indirect
cloud.google.com/go/longrunning v0.5.7 // indirect
github.com/felixge/httpsnoop v1.0.4 // indirect
github.com/go-logr/logr v1.4.1 // indirect
github.com/go-logr/logr v1.4.2 // indirect
github.com/go-logr/stdr v1.2.2 // indirect
github.com/google/s2a-go v0.1.7 // indirect
github.com/googleapis/enterprise-certificate-proxy v0.3.2 // indirect
github.com/mattn/go-colorable v0.1.13 // indirect
github.com/mattn/go-isatty v0.0.20 // indirect
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.48.0 // indirect
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.48.0 // indirect
go.opentelemetry.io/otel v1.23.1 // indirect
go.opentelemetry.io/otel/metric v1.23.1 // indirect
go.opentelemetry.io/otel/trace v1.23.1 // indirect
golang.org/x/crypto v0.19.0 // indirect
golang.org/x/sync v0.6.0 // indirect
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.52.0 // indirect
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.52.0 // indirect
go.opentelemetry.io/otel v1.27.0 // indirect
go.opentelemetry.io/otel/metric v1.27.0 // indirect
go.opentelemetry.io/otel/trace v1.27.0 // indirect
golang.org/x/crypto v0.24.0 // indirect
golang.org/x/sync v0.7.0 // indirect
golang.org/x/time v0.5.0 // indirect
google.golang.org/genproto v0.0.0-20240205150955-31a09d347014 // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20240205150955-31a09d347014 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20240205150955-31a09d347014 // indirect
google.golang.org/genproto v0.0.0-20240610135401-a8a62080eff3 // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20240610135401-a8a62080eff3 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20240610135401-a8a62080eff3 // indirect
)

require (
cloud.google.com/go v0.112.0 // indirect
cloud.google.com/go v0.114.0 // indirect
github.com/adam-lavrik/go-imath v0.0.0-20210910152346-265a42a96f0b
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
github.com/golang/protobuf v1.5.3 // indirect
github.com/googleapis/gax-go/v2 v2.12.0 // indirect
github.com/golang/protobuf v1.5.4 // indirect
github.com/googleapis/gax-go/v2 v2.12.4 // indirect
go.opencensus.io v0.24.0 // indirect
golang.org/x/net v0.21.0 // indirect
golang.org/x/oauth2 v0.17.0 // indirect
golang.org/x/sys v0.17.0 // indirect
golang.org/x/text v0.14.0 // indirect
google.golang.org/api v0.163.0
google.golang.org/appengine v1.6.8 // indirect
google.golang.org/grpc v1.61.0 // indirect
google.golang.org/protobuf v1.32.0 // indirect
golang.org/x/net v0.26.0 // indirect
golang.org/x/oauth2 v0.21.0 // indirect
golang.org/x/sys v0.21.0 // indirect
golang.org/x/text v0.16.0 // indirect
google.golang.org/api v0.183.0
google.golang.org/grpc v1.64.0 // indirect
google.golang.org/protobuf v1.34.2 // indirect
)
Loading

0 comments on commit a27fdbf

Please sign in to comment.