Skip to content

Commit 7f4af4c

Browse files
committed
Merge branch 'main' into feat/upgrade-202505
2 parents 266e46b + 203f97d commit 7f4af4c

File tree

20 files changed

+538
-480
lines changed

20 files changed

+538
-480
lines changed

.github/actions/prepare/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ runs:
2525
with:
2626
ref: ${{ github.head_ref || inputs.branch || 'main' }}
2727
- name: "Setup Go"
28-
uses: actions/setup-go@v4
28+
uses: actions/setup-go@v5
2929
with:
3030
# go-version: '~1.21.5' # go 1.20 has issues: `go test -covermode=atomic` fails when files doesn't have empty line at the end
3131
go-version-file: 'go.mod'

.github/actions/verify/action.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,12 @@ runs:
2424
go tool cover -func=dist/coverage.out -o dist/coverage-func.out
2525
2626
- name: "Code Quality Analysis"
27-
uses: golangci/golangci-lint-action@v3
27+
uses: golangci/golangci-lint-action@v6
2828
with:
29-
version: v1.59.1
29+
version: v1.64.8
3030
args: -c=build/ci/golangci.yml --timeout=10m --issues-exit-code=${{ inputs.fail_on_lint_issues == 'true' && 1 || 0 }}
3131
# if fail_on_lint_issues == true, we assume it's a PR verification
3232
only-new-issues: ${{ inputs.fail_on_lint_issues == 'true' && 'true' || 'false' }}
33-
# ~/go/pkg cache conflict with actions/setup-go@v4
34-
skip-pkg-cache: true
33+
3534

3635

.github/workflows/ci.yml

Lines changed: 28 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,10 @@ on:
3535
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
3636
jobs:
3737
main:
38-
name: Test, Analyze Code & Report
38+
name: "Test, Analyze Code & Report"
3939
runs-on: ubuntu-latest
40+
permissions:
41+
contents: write
4042
steps:
4143
- name: "Context"
4244
shell: bash
@@ -77,20 +79,31 @@ jobs:
7779
format: markdown
7880
output: both
7981
thresholds: "${{ inputs.low_cov }} ${{ inputs.high_cov }}"
80-
- name: "Upload Badges"
82+
- name: "Collect Reports"
8183
if: ${{ !cancelled() && github.event_name != 'pull_request' }}
82-
uses: exuanbo/actions-deploy-gist@v1
83-
with:
84-
token: ${{ secrets.COVERAGE_BADGE_GIST_TOKEN }}
85-
gist_id: 82b48469578014fc69d5aa64ef0a443f
86-
gist_file_name: go-lanai-${{ github.head_ref || inputs.branch || 'main' }}-coverage.svg
87-
file_path: dist/coverage-badge.svg
88-
- name: "Upload Reports"
89-
if: ${{ !cancelled() && github.event_name != 'pull_request' }}
90-
uses: exuanbo/actions-deploy-gist@v1
84+
run: |
85+
cat > dist/code-coverage-results.md <<EOF
86+
---
87+
layout: report
88+
title: "Test Coverage Summary"
89+
report:
90+
source: "irongut/[email protected]"
91+
---
92+
[![Coverage Details](https://img.shields.io/badge/Coverage%20Details-grey?style=flat)](coverage.html)
93+
EOF
94+
cat code-coverage-results.md >> dist/code-coverage-results.md
95+
- name: "Upload Badges and Reports"
96+
if: ${{ !cancelled() && github.event_name != 'pull_request' && github.ref == 'refs/heads/main' }}
97+
uses: peaceiris/actions-gh-pages@v4
9198
with:
92-
token: ${{ secrets.COVERAGE_BADGE_GIST_TOKEN }}
93-
gist_id: 82b48469578014fc69d5aa64ef0a443f
94-
gist_file_name: go-lanai-${{ github.head_ref || inputs.branch || 'main' }}-coverage.md
95-
file_path: code-coverage-results.md
99+
github_token: ${{ secrets.GITHUB_TOKEN }}
100+
publish_branch: gh-pages
101+
publish_dir: dist
102+
destination_dir: reports/${{ github.ref_name }}
103+
exclude_assets: '.github,coverage.out,tests.json'
104+
enable_jekyll: true
105+
keep_files: true
106+
commit_message: "Upload badges & reports from CI - ${{ github.job }}"
107+
108+
96109

.gitignore

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,9 @@ vendor/
3333

3434

3535
# Codegen
36-
output
36+
output
37+
38+
# gh-pages jekyll
39+
Gemfile
40+
Gemfile.*
41+
_site/**

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# go-lanai
22

33
![Tests](https://github.com/cisco-open/go-lanai/actions/workflows/ci.yml/badge.svg?branch=main)
4-
[![Coverage](https://gist.githubusercontent.com/stonedu1011/82b48469578014fc69d5aa64ef0a443f/raw/go-lanai-main-coverage.svg)](https://gist.githubusercontent.com/stonedu1011/82b48469578014fc69d5aa64ef0a443f/#file-go-lanai-main-coverage-md)
4+
[![Coverage](https://cisco-open.github.io/go-lanai/reports/main/coverage-badge.svg)](https://cisco-open.github.io/go-lanai/reports/main/code-coverage-results.html)
55
[![Apache 2.0](https://img.shields.io/badge/License-Apache_2.0-green.svg)](https://opensource.org/license/apache-2-0/)
66

77
go-lanai is an application frameworks and a set of modules that make writing applications easy. It provides

examples/auth/go.mod

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
module github.com/cisco-open/go-lanai/examples/auth-service
22

3-
go 1.22
3+
go 1.23.8
44

5-
toolchain go1.22.4
5+
toolchain go1.24.3
66

77
replace github.com/cisco-open/go-lanai => ./../../../go-lanai
88

99
require (
1010
github.com/cisco-open/go-lanai v0.15.0
1111
github.com/pkg/errors v0.9.1
12-
go.uber.org/fx v1.22.2
12+
go.uber.org/fx v1.24.0
1313
)
1414

1515
require (
16-
dario.cat/mergo v1.0.0 // indirect
16+
dario.cat/mergo v1.0.2 // indirect
1717
github.com/armon/go-metrics v0.4.1 // indirect
18-
github.com/beevik/etree v1.4.1 // indirect
19-
github.com/bmatcuk/doublestar/v4 v4.6.1 // indirect
18+
github.com/beevik/etree v1.5.1 // indirect
19+
github.com/bmatcuk/doublestar/v4 v4.8.1 // indirect
2020
github.com/boombuler/barcode v1.0.1-0.20190219062509-6c824513bacc // indirect
2121
github.com/bytedance/sonic v1.11.6 // indirect
2222
github.com/bytedance/sonic/loader v0.1.1 // indirect
@@ -25,22 +25,22 @@ require (
2525
github.com/cloudwego/base64x v0.1.4 // indirect
2626
github.com/cloudwego/iasm v0.2.0 // indirect
2727
github.com/crewjam/httperr v0.2.0 // indirect
28-
github.com/crewjam/saml v0.4.14 // indirect
28+
github.com/crewjam/saml v0.5.1 // indirect
2929
github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f // indirect
3030
github.com/fatih/color v1.16.0 // indirect
31-
github.com/gabriel-vasile/mimetype v1.4.3 // indirect
31+
github.com/gabriel-vasile/mimetype v1.4.8 // indirect
3232
github.com/ghodss/yaml v1.0.1-0.20190212211648-25d852aebe32 // indirect
3333
github.com/gin-contrib/sse v0.1.0 // indirect
34-
github.com/gin-gonic/gin v1.10.0 // indirect
35-
github.com/go-jose/go-jose/v4 v4.0.1 // indirect
34+
github.com/gin-gonic/gin v1.10.1 // indirect
35+
github.com/go-jose/go-jose/v4 v4.0.5 // indirect
3636
github.com/go-playground/locales v0.14.1 // indirect
3737
github.com/go-playground/universal-translator v0.18.1 // indirect
38-
github.com/go-playground/validator/v10 v10.22.0 // indirect
38+
github.com/go-playground/validator/v10 v10.26.0 // indirect
3939
github.com/go-redis/redis/v8 v8.11.5 // indirect
4040
github.com/goccy/go-json v0.10.2 // indirect
4141
github.com/golang-jwt/jwt/v4 v4.5.2 // indirect
4242
github.com/google/uuid v1.6.0 // indirect
43-
github.com/hashicorp/consul/api v1.30.0 // indirect
43+
github.com/hashicorp/consul/api v1.32.1 // indirect
4444
github.com/hashicorp/errwrap v1.1.0 // indirect
4545
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
4646
github.com/hashicorp/go-hclog v1.6.3 // indirect
@@ -54,10 +54,10 @@ require (
5454
github.com/hashicorp/golang-lru v0.5.4 // indirect
5555
github.com/hashicorp/hcl v1.0.1-vault-3 // indirect
5656
github.com/hashicorp/serf v0.10.1 // indirect
57-
github.com/hashicorp/vault/api v1.14.0 // indirect
58-
github.com/hashicorp/vault/api/auth/kubernetes v0.7.0 // indirect
57+
github.com/hashicorp/vault/api v1.16.0 // indirect
58+
github.com/hashicorp/vault/api/auth/kubernetes v0.9.0 // indirect
5959
github.com/inconshreveable/mousetrap v1.1.0 // indirect
60-
github.com/jonboulle/clockwork v0.2.2 // indirect
60+
github.com/jonboulle/clockwork v0.5.0 // indirect
6161
github.com/json-iterator/go v1.1.12 // indirect
6262
github.com/klauspost/cpuid/v2 v2.2.7 // indirect
6363
github.com/leodido/go-urn v1.4.0 // indirect
@@ -69,30 +69,30 @@ require (
6969
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
7070
github.com/modern-go/reflect2 v1.0.2 // indirect
7171
github.com/opentracing/opentracing-go v1.2.0 // indirect
72-
github.com/pelletier/go-toml/v2 v2.2.2 // indirect
73-
github.com/pquerna/otp v1.4.0 // indirect
74-
github.com/rs/cors v1.11.0 // indirect
75-
github.com/russellhaering/goxmldsig v1.4.0 // indirect
72+
github.com/pelletier/go-toml/v2 v2.2.3 // indirect
73+
github.com/pquerna/otp v1.5.0 // indirect
74+
github.com/rs/cors v1.11.1 // indirect
75+
github.com/russellhaering/goxmldsig v1.5.0 // indirect
7676
github.com/ryanuber/go-glob v1.0.0 // indirect
77-
github.com/spf13/cobra v1.8.1 // indirect
78-
github.com/spf13/pflag v1.0.5 // indirect
77+
github.com/spf13/cobra v1.9.1 // indirect
78+
github.com/spf13/pflag v1.0.6 // indirect
7979
github.com/twitchyliquid64/golang-asm v0.15.1 // indirect
8080
github.com/uber/jaeger-client-go v2.30.0+incompatible // indirect
8181
github.com/uber/jaeger-lib v2.4.1+incompatible // indirect
8282
github.com/ugorji/go/codec v1.2.12 // indirect
8383
go.uber.org/atomic v1.9.0 // indirect
84-
go.uber.org/dig v1.18.0 // indirect
84+
go.uber.org/dig v1.19.0 // indirect
8585
go.uber.org/multierr v1.11.0 // indirect
8686
go.uber.org/zap v1.27.0 // indirect
8787
golang.org/x/arch v0.8.0 // indirect
88-
golang.org/x/crypto v0.31.0 // indirect
89-
golang.org/x/exp v0.0.0-20240719175910-8a7402abbf56 // indirect
90-
golang.org/x/net v0.33.0 // indirect
91-
golang.org/x/sys v0.28.0 // indirect
92-
golang.org/x/term v0.27.0 // indirect
93-
golang.org/x/text v0.21.0 // indirect
94-
golang.org/x/time v0.5.0 // indirect
95-
google.golang.org/protobuf v1.34.2 // indirect
88+
golang.org/x/crypto v0.38.0 // indirect
89+
golang.org/x/exp v0.0.0-20250305212735-054e65f0b394 // indirect
90+
golang.org/x/net v0.40.0 // indirect
91+
golang.org/x/sys v0.33.0 // indirect
92+
golang.org/x/term v0.32.0 // indirect
93+
golang.org/x/text v0.25.0 // indirect
94+
golang.org/x/time v0.11.0 // indirect
95+
google.golang.org/protobuf v1.36.6 // indirect
9696
gopkg.in/yaml.v2 v2.4.0 // indirect
9797
gopkg.in/yaml.v3 v3.0.1 // indirect
9898
)

0 commit comments

Comments
 (0)