Skip to content

Commit d2df70c

Browse files
committed
chore(ci): Switch the Go environment settings from setup-go-faster to the official setup-go@v6
1 parent bdbef90 commit d2df70c

File tree

5 files changed

+13
-12
lines changed

5 files changed

+13
-12
lines changed

.github/changelog.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ rules:
3131
contains: ['fix:']
3232
- name: Feature
3333
start_withs: [feat, new]
34-
contains: [feature, 'feat:']
34+
contains: [feature, 'feat:', 'sparkles:']
3535
- name: Update
3636
start_withs: [up]
3737
contains: ['update:', 'up:']

.github/workflows/codecheck.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ jobs:
2121
- name: Check out code
2222
uses: actions/checkout@v6
2323

24-
- name: Setup Go Faster
25-
uses: WillAbides/setup-go-faster@v1.14.0
24+
- name: Setup Go SDK
25+
uses: actions/setup-go@v6
2626
timeout-minutes: 3
2727
with:
28-
go-version: "1.23"
28+
go-version: "stable"
2929

3030
# - name: Revive lint check
3131
# uses: docker://morphy/revive-action:v2.5.5

.github/workflows/go.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ jobs:
1818
runs-on: ubuntu-latest
1919
strategy:
2020
matrix:
21-
go_version: [1.19, '1.20', 1.21, 1.22, 1.23, 1.24]
21+
go_version: [1.19, 1.21, 1.22, 1.23, 1.24, 'stable']
2222

2323
steps:
2424
- name: Check out code
2525
uses: actions/checkout@v6
2626

27-
- name: Setup Go Faster
28-
uses: WillAbides/setup-go-faster@v1.14.0
27+
- name: Setup Go SDK
28+
uses: actions/setup-go@v6
2929
timeout-minutes: 3
3030
with:
3131
go-version: ${{ matrix.go_version }}

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,5 @@
1717
*.out
1818
.DS_Store
1919
vendor
20-
#go.sum
20+
#go.sum
21+
.xenv.toml

dotenv/dotenv.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,8 @@ func LoadFromMap(kv map[string]string) (err error) {
175175

176176
// Get os ENV value by name
177177
func Get(name string, defVal ...string) (val string) {
178-
if val, ok := getVal(name); ok {
179-
return val
178+
if val1, ok := getVal(name); ok {
179+
return val1
180180
}
181181

182182
if len(defVal) > 0 {
@@ -188,9 +188,9 @@ func Get(name string, defVal ...string) (val string) {
188188
// Bool get a bool value by key
189189
func Bool(name string, defVal ...bool) (val bool) {
190190
if str, ok := getVal(name); ok {
191-
val, err := strconv.ParseBool(str)
191+
val1, err := strconv.ParseBool(str)
192192
if err == nil {
193-
return val
193+
return val1
194194
}
195195
}
196196

0 commit comments

Comments
 (0)