Skip to content

Commit 9e8c277

Browse files
authored
workflow setup go version by go.mod (#281)
1 parent 50c60ab commit 9e8c277

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

.github/workflows/codecov.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- name: Setup go
1515
uses: actions/setup-go@v4
1616
with:
17-
go-version: stable
17+
go-version-file: go.mod
1818

1919
- name: Runing tests for coverage
2020
run: |

.github/workflows/codeql-analysis.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ jobs:
2222
- name: Checkout repository
2323
uses: actions/checkout@v4
2424

25+
- name: Setup go
26+
uses: actions/setup-go@v4
27+
with:
28+
go-version-file: go.mod
29+
2530
- name: Initialize CodeQL
2631
uses: github/codeql-action/init@v2
2732
with:

.github/workflows/documentation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- name: Set up Go
1515
uses: actions/setup-go@v4
1616
with:
17-
go-version: stable
17+
go-version-file: go.mod
1818

1919
- name: Install swag by swaggo
2020
run: |

0 commit comments

Comments
 (0)