Skip to content

Commit 964fcee

Browse files
committed
ci: update GitHub Actions workflows and standardize YAML quoting
- Update GitHub Actions to use newer major versions for checkout, setup-go, cache, codeql-action, and codecov-action - Change single quotes to double quotes in workflow YAML for consistency Signed-off-by: Bo-Yi Wu <[email protected]>
1 parent aed5e26 commit 964fcee

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

.github/workflows/codeql.yaml

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

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

1717
jobs:
1818
analyze:
@@ -33,15 +33,15 @@ jobs:
3333
# Override automatic language detection by changing the below list
3434
# Supported options are ['csharp', 'cpp', 'go', 'java', 'javascript', 'python']
3535
# TODO: Enable for javascript later
36-
language: [ 'go']
36+
language: ["go"]
3737

3838
steps:
3939
- name: Checkout repository
40-
uses: actions/checkout@v3
40+
uses: actions/checkout@v4
4141

4242
# Initializes the CodeQL tools for scanning.
4343
- name: Initialize CodeQL
44-
uses: github/codeql-action/init@v2
44+
uses: github/codeql-action/init@v3
4545
with:
4646
languages: ${{ matrix.language }}
4747
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -50,4 +50,4 @@ jobs:
5050
# queries: ./path/to/local/query, your-org/your-repo/queries@main
5151

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

.github/workflows/go.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,16 @@ jobs:
3535

3636
steps:
3737
- name: Set up Go ${{ matrix.go }}
38-
uses: actions/setup-go@v3
38+
uses: actions/setup-go@v5
3939
with:
4040
go-version: ${{ matrix.go }}
4141

4242
- name: Checkout Code
43-
uses: actions/checkout@v3
43+
uses: actions/checkout@v4
4444
with:
4545
ref: ${{ github.ref }}
4646

47-
- uses: actions/cache@v3
47+
- uses: actions/cache@v4
4848
with:
4949
path: |
5050
${{ matrix.go-build }}
@@ -66,6 +66,6 @@ jobs:
6666
go test -v -covermode=atomic -coverprofile=coverage.out
6767
6868
- name: Upload coverage to Codecov
69-
uses: codecov/codecov-action@v3
69+
uses: codecov/codecov-action@v5
7070
with:
7171
flags: ${{ matrix.os }},go-${{ matrix.go }}

0 commit comments

Comments
 (0)