Skip to content

Commit

Permalink
Use go version from go.mod in workflow go setup
Browse files Browse the repository at this point in the history
  • Loading branch information
williammartin committed Apr 3, 2024
1 parent 3877dfa commit 278e05a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Expand Up @@ -27,7 +27,7 @@ jobs:
- name: Setup go
uses: actions/setup-go@v5
with:
go-version: '1.22'
go-version-file: 'go.mod'

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Expand Up @@ -10,7 +10,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: "1.22"
go-version-file: 'go.mod'

- name: Checkout repository
uses: actions/checkout@v4
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/test.yml
Expand Up @@ -8,15 +8,14 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
go: ["1.22"]

runs-on: ${{ matrix.os }}

steps:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go }}
go-version-file: 'go.mod'

- name: Checkout repository
uses: actions/checkout@v4
Expand Down

0 comments on commit 278e05a

Please sign in to comment.