Skip to content

Commit 160c173

Browse files
authored
chore: update GitHub Actions configuration (#3792)
- Change the cron schedule from `'0 17 * * 5'` to `"0 17 * * 5"` in the file `.github/workflows/codeql.yml` - Change the value of `language` from `['go']` to `["go"]` in the file `.github/workflows/codeql.yml` - Change the value of `go-version` from `'^1.18'` to `"^1.18"` in the file `.github/workflows/gin.yml` - Add `1.21` to the list of `go` versions and change the value of `test-tags` in the file `.github/workflows/gin.yml` - Change the value of `if` condition from `matrix.go-version == '1.20.x'` to `matrix.go-version == '1.21.x'` in the file `.github/workflows/gin.yml` - Change the value of `on` from `'*'` to `"*"` in the file `.github/workflows/goreleaser.yml` - Change the name of the job from `name: Checkout` to `name: Checkout` in the file `.github/workflows/goreleaser.yml` - Change the name of the job from `name: Set up Go` to `name: Set up Go` in the file `.github/workflows/goreleaser.yml` - Change the value of `go-version` from `1.20` to `"^1"` in Signed-off-by: Bo-Yi Wu <[email protected]>
1 parent 53fbf4d commit 160c173

File tree

3 files changed

+11
-12
lines changed

3 files changed

+11
-12
lines changed

.github/workflows/codeql.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ name: "CodeQL"
77

88
on:
99
push:
10-
branches: [ master ]
10+
branches: [master]
1111
pull_request:
1212
# The branches below must be a subset of the branches above
13-
branches: [ master ]
13+
branches: [master]
1414
schedule:
15-
- cron: '0 17 * * 5'
15+
- cron: "0 17 * * 5"
1616

1717
jobs:
1818
analyze:
@@ -29,7 +29,7 @@ jobs:
2929
# Override automatic language detection by changing the below list
3030
# Supported options are ['csharp', 'cpp', 'go', 'java', 'javascript', 'python']
3131
# TODO: Enable for javascript later
32-
language: [ 'go']
32+
language: ["go"]
3333

3434
steps:
3535
- name: Checkout repository

.github/workflows/gin.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: Setup go
1919
uses: actions/setup-go@v5
2020
with:
21-
go-version: '^1.18'
21+
go-version: "^1.18"
2222
- name: Checkout repository
2323
uses: actions/checkout@v4
2424
- name: Setup golangci-lint
@@ -31,8 +31,8 @@ jobs:
3131
strategy:
3232
matrix:
3333
os: [ubuntu-latest, macos-latest]
34-
go: ['1.18', '1.19', '1.20']
35-
test-tags: ['', '-tags nomsgpack', '-tags "sonic avx"', '-tags go_json']
34+
go: ["1.18", "1.19", "1.20", "1.21"]
35+
test-tags: ["", "-tags nomsgpack", '-tags "sonic avx"', "-tags go_json"]
3636
include:
3737
- os: ubuntu-latest
3838
go-build: ~/.cache/go-build
@@ -73,5 +73,5 @@ jobs:
7373
flags: ${{ matrix.os }},go-${{ matrix.go }},${{ matrix.test-tags }}
7474

7575
- name: Format
76-
if: matrix.go-version == '1.20.x'
76+
if: matrix.go-version == '1.21.x'
7777
run: diff -u <(echo -n) <(gofmt -d .)

.github/workflows/goreleaser.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Goreleaser
33
on:
44
push:
55
tags:
6-
- '*'
6+
- "*"
77

88
permissions:
99
contents: write
@@ -12,16 +12,15 @@ jobs:
1212
goreleaser:
1313
runs-on: ubuntu-latest
1414
steps:
15-
-
16-
name: Checkout
15+
- name: Checkout
1716
uses: actions/checkout@v4
1817
with:
1918
fetch-depth: 0
2019
-
2120
name: Set up Go
2221
uses: actions/setup-go@v5
2322
with:
24-
go-version: 1.20
23+
go-version: "^1"
2524
-
2625
name: Run GoReleaser
2726
uses: goreleaser/goreleaser-action@v5

0 commit comments

Comments
 (0)