Skip to content

Commit fca7466

Browse files
use go-version-file instead of go-version (#461)
1 parent 13e6915 commit fca7466

File tree

5 files changed

+31
-31
lines changed

5 files changed

+31
-31
lines changed

.github/workflows/e2e-tests.yaml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
name: e2e-tests
44
permissions:
55
contents: read
6-
on: # yamllint disable-line rule:truthy
6+
on: # yamllint disable-line rule:truthy
77
push:
88
branches:
99
- main
@@ -26,10 +26,10 @@ jobs:
2626
runs-on: ubuntu-latest
2727
if: ${{ github.event.workflow_run.conclusion == 'success' || github.event_name != 'workflow_run' }}
2828
steps:
29-
- uses: actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493 # v5.0.0
30-
- uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
29+
- uses: actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493 # v5.0.0
30+
- uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
3131
with:
32-
go-version: 1.25.1
32+
go-version-file: "go.mod"
3333
- name: Import environment variables from file
3434
run: |
3535
cat ".github/env" >> "$GITHUB_ENV"
@@ -40,10 +40,10 @@ jobs:
4040
name: Against netbox version 4.0.11
4141
runs-on: ubuntu-latest
4242
steps:
43-
- uses: actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493 # v5.0.0
44-
- uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
43+
- uses: actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493 # v5.0.0
44+
- uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
4545
with:
46-
go-version: 1.25.1
46+
go-version-file: "go.mod"
4747
- name: Import environment variables from file
4848
run: |
4949
cat ".github/env" >> "$GITHUB_ENV"
@@ -54,10 +54,10 @@ jobs:
5454
name: Against netbox version 4.1.11
5555
runs-on: ubuntu-latest
5656
steps:
57-
- uses: actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493 # v5.0.0
58-
- uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
57+
- uses: actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493 # v5.0.0
58+
- uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
5959
with:
60-
go-version: 1.25.1
60+
go-version-file: "go.mod"
6161
- name: Import environment variables from file
6262
run: |
6363
cat ".github/env" >> "$GITHUB_ENV"

.github/workflows/govuln.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: Go Vulnerability Checker
3-
on: # yamllint disable-line rule:truthy
3+
on: # yamllint disable-line rule:truthy
44
push:
55
branches:
66
- main
@@ -17,10 +17,10 @@ jobs:
1717
runs-on: ubuntu-latest
1818
if: ${{ github.event.workflow_run.conclusion == 'success' || github.event_name != 'workflow_run' }}
1919
steps:
20-
- uses: actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493 # v5.0.0
21-
- uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
20+
- uses: actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493 # v5.0.0
21+
- uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
2222
with:
23-
go-version: 1.25.1
23+
go-version-file: "go.mod"
2424
- run: |-
2525
set -euo pipefail
2626

.github/workflows/integration-test.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: Integration Tests
3-
on: # yamllint disable-line rule:truthy
3+
on: # yamllint disable-line rule:truthy
44
push:
55
branches:
66
- main
@@ -18,10 +18,10 @@ jobs:
1818
runs-on: ubuntu-latest
1919
if: ${{ github.event.workflow_run.conclusion == 'success' || github.event_name != 'workflow_run' }}
2020
steps:
21-
- uses: actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493 # v5.0.0
22-
- uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
21+
- uses: actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493 # v5.0.0
22+
- uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
2323
with:
24-
go-version: 1.25.1
24+
go-version-file: "go.mod"
2525
- name: tests
2626
run: |-
2727
go install github.com/onsi/ginkgo/v2/ginkgo

.github/workflows/lint.yaml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: Static analysis
3-
on: # yamllint disable-line rule:truthy
3+
on: # yamllint disable-line rule:truthy
44
push:
55
branches:
66
- main
@@ -17,12 +17,12 @@ jobs:
1717
runs-on: ubuntu-latest
1818
if: ${{ github.event.workflow_run.conclusion == 'success' || github.event_name != 'workflow_run' }}
1919
steps:
20-
- uses: actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493 # v5.0.0
21-
- uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
20+
- uses: actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493 # v5.0.0
21+
- uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
2222
with:
23-
go-version: 1.25.1
23+
go-version-file: "go.mod"
2424
- name: golangci-lint
25-
uses: golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9 # v8.0.0
25+
uses: golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9 # v8.0.0
2626
with:
2727
version: v2.4.0
2828
args: --config tools/.golangci.yaml
@@ -66,14 +66,14 @@ jobs:
6666
codespell:
6767
runs-on: ubuntu-latest
6868
steps:
69-
- uses: actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493 # v5.0.0
69+
- uses: actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493 # v5.0.0
7070
- name: Run codespell
7171
uses: codespell-project/actions-codespell@v2
7272
with:
73-
skip: '*.svg'
73+
skip: "*.svg"
7474
yamllint:
7575
runs-on: ubuntu-latest
7676
steps:
77-
- uses: actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493 # v5.0.0
78-
- name: 'Yamllint'
77+
- uses: actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493 # v5.0.0
78+
- name: "Yamllint"
7979
uses: karancode/yamllint-github-action@master

.github/workflows/unit-test.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: Unit tests
3-
on: # yamllint disable-line rule:truthy
3+
on: # yamllint disable-line rule:truthy
44
push:
55
branches:
66
- main
@@ -18,10 +18,10 @@ jobs:
1818
runs-on: ubuntu-latest
1919
if: ${{ github.event.workflow_run.conclusion == 'success' || github.event_name != 'workflow_run' }}
2020
steps:
21-
- uses: actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493 # v5.0.0
22-
- uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
21+
- uses: actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493 # v5.0.0
22+
- uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
2323
with:
24-
go-version: 1.25.1
24+
go-version-file: "go.mod"
2525
- name: tests
2626
run: |-
2727
make test

0 commit comments

Comments
 (0)