Skip to content

Commit 2d48feb

Browse files
committed
fix: update workflows and dependencies
- Fix a typo in the cron expression for the codeql workflow - Update the language specification for the codeql workflow to use double quotes instead of single quotes - Update the file paths in the goreleaser workflow to use double quotes instead of single quotes - Update the version of the goreleaser action to v5 - Update the Go version range in the lint workflow to include Go 1.21 - Update the version of the linter to the latest version Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
1 parent e8253f1 commit 2d48feb

3 files changed

Lines changed: 24 additions & 27 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ name: "CodeQL"
1313

1414
on:
1515
push:
16-
branches: [ master ]
16+
branches: [master]
1717
pull_request:
1818
# The branches below must be a subset of the branches above
19-
branches: [ master ]
19+
branches: [master]
2020
schedule:
21-
- cron: '41 23 * * 6'
21+
- cron: "41 23 * * 6"
2222

2323
jobs:
2424
analyze:
@@ -32,23 +32,23 @@ jobs:
3232
strategy:
3333
fail-fast: false
3434
matrix:
35-
language: [ 'go' ]
35+
language: ["go"]
3636
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
3737
# Learn more about CodeQL language support at https://git.io/codeql-language-support
3838

3939
steps:
40-
- name: Checkout repository
41-
uses: actions/checkout@v4
40+
- name: Checkout repository
41+
uses: actions/checkout@v4
4242

43-
# Initializes the CodeQL tools for scanning.
44-
- name: Initialize CodeQL
45-
uses: github/codeql-action/init@v2
46-
with:
47-
languages: ${{ matrix.language }}
48-
# If you wish to specify custom queries, you can do so here or in a config file.
49-
# By default, queries listed here will override any specified in a config file.
50-
# Prefix the list here with "+" to use these queries and those in the config file.
51-
# queries: ./path/to/local/query, your-org/your-repo/queries@main
43+
# Initializes the CodeQL tools for scanning.
44+
- name: Initialize CodeQL
45+
uses: github/codeql-action/init@v2
46+
with:
47+
languages: ${{ matrix.language }}
48+
# If you wish to specify custom queries, you can do so here or in a config file.
49+
# By default, queries listed here will override any specified in a config file.
50+
# Prefix the list here with "+" to use these queries and those in the config file.
51+
# queries: ./path/to/local/query, your-org/your-repo/queries@main
5252

53-
- name: Perform CodeQL Analysis
54-
uses: github/codeql-action/analyze@v2
53+
- name: Perform CodeQL Analysis
54+
uses: github/codeql-action/analyze@v2

.github/workflows/goreleaser.yml

Lines changed: 5 additions & 8 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,19 +12,16 @@ 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
20-
-
21-
name: Set up Go
19+
- name: Set up Go
2220
uses: actions/setup-go@v4
2321
with:
2422
go-version: 1.17
25-
-
26-
name: Run GoReleaser
27-
uses: goreleaser/goreleaser-action@v4
23+
- name: Run GoReleaser
24+
uses: goreleaser/goreleaser-action@v5
2825
with:
2926
# either 'goreleaser' (default) or 'goreleaser-pro'
3027
distribution: goreleaser

.github/workflows/lint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jobs:
66
strategy:
77
matrix:
88
os: [ubuntu-latest]
9-
go: [1.16, 1.17, 1.18, 1.19, '1.20']
9+
go: [1.18, 1.19, "1.20", 1.21]
1010
name: ${{ matrix.os }} @ Go ${{ matrix.go }}
1111
runs-on: ${{ matrix.os }}
1212

@@ -28,5 +28,5 @@ jobs:
2828
- name: golangci-lint
2929
uses: golangci/golangci-lint-action@v3
3030
with:
31-
version: v1.51.1
31+
version: latest
3232
args: --verbose --timeout 10m

0 commit comments

Comments
 (0)