Skip to content

Commit 82b72d4

Browse files
Remove .go-version (#362)
1 parent 7b116f3 commit 82b72d4

File tree

5 files changed

+9
-55
lines changed

5 files changed

+9
-55
lines changed

.github/workflows/go-test-multiplatform.yml

Lines changed: 3 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -16,57 +16,36 @@ permissions:
1616
contents: read
1717

1818
jobs:
19-
get-go-version:
20-
runs-on: ubuntu-latest
21-
outputs:
22-
go-version: ${{ steps.get-go-version.outputs.go-version }}
23-
steps:
24-
- uses: actions/checkout@v5
25-
- name: 'Determine Go version'
26-
id: get-go-version
27-
run: |
28-
echo "Found Go $(cat .go-version)"
29-
echo "go-version=$(cat .go-version)" >> $GITHUB_OUTPUT
30-
3119
darwin-go-tests:
32-
needs:
33-
- get-go-version
3420
runs-on: macos-latest
3521
name: Darwin Go tests
3622
steps:
3723
- uses: actions/checkout@v5
3824
- uses: actions/setup-go@v5
3925
with:
40-
go-version: ${{ needs.get-go-version.outputs.go-version }}
26+
go-version: stable
4127
- run: |
42-
echo "Testing with Go ${{ needs.get-go-version.outputs.go-version }}"
4328
go test -race -count 1 ./... -timeout=3m -v
4429
4530
windows-go-tests:
46-
needs:
47-
- get-go-version
4831
runs-on: windows-latest
4932
name: Windows Go tests
5033
steps:
5134
- uses: actions/checkout@v5
5235
- uses: actions/setup-go@v5
5336
with:
54-
go-version: ${{ needs.get-go-version.outputs.go-version }}
37+
go-version: stable
5538
# Running unit tests directly with `go test` due to gofmt/gofumpt issues in Windows
5639
- run: |
57-
echo "Testing with Go ${{ needs.get-go-version.outputs.go-version }}"
5840
go test -race -count 1 ./... -timeout=3m -v
5941
6042
linux-go-tests:
61-
needs:
62-
- get-go-version
6343
runs-on: ubuntu-latest
6444
name: Linux Go tests
6545
steps:
6646
- uses: actions/checkout@v5
6747
- uses: actions/setup-go@v5
6848
with:
69-
go-version: ${{ needs.get-go-version.outputs.go-version }}
49+
go-version: stable
7050
- run: |
71-
echo "Testing with Go ${{ needs.get-go-version.outputs.go-version }}"
7251
make unit-test

.github/workflows/go-validate.yml

Lines changed: 4 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -15,62 +15,43 @@ permissions:
1515
contents: read
1616

1717
jobs:
18-
get-go-version:
19-
runs-on: ubuntu-latest
20-
outputs:
21-
go-version: ${{ steps.get-go-version.outputs.go-version }}
22-
steps:
23-
- uses: actions/checkout@v5
24-
- name: 'Determine Go version'
25-
id: get-go-version
26-
run: |
27-
echo "Found Go $(cat .go-version)"
28-
echo "go-version=$(cat .go-version)" >> $GITHUB_OUTPUT
2918
check-mod-tidy:
30-
needs:
31-
- get-go-version
3219
runs-on: ubuntu-latest
3320
name: Go Mod Tidy
3421
steps:
3522
- uses: actions/checkout@v5
3623
- uses: actions/setup-go@v5
3724
with:
38-
go-version: ${{ needs.get-go-version.outputs.go-version }}
25+
go-version: stable
3926
- run: go mod tidy
4027
check-lint:
41-
needs:
42-
- get-go-version
4328
runs-on: ubuntu-latest
4429
name: Lint check
4530
steps:
4631
- uses: actions/checkout@v5
4732
- uses: actions/setup-go@v5
4833
with:
49-
go-version: ${{ needs.get-go-version.outputs.go-version }}
34+
go-version: stable
5035
- uses: golangci/golangci-lint-action@v8
5136
with:
5237
only-new-issues: true
5338
check-fmt:
54-
needs:
55-
- get-go-version
5639
runs-on: ubuntu-latest
5740
name: Gofmt check
5841
steps:
5942
- uses: actions/checkout@v5
6043
- uses: actions/setup-go@v5
6144
with:
62-
go-version: ${{ needs.get-go-version.outputs.go-version }}
45+
go-version: stable
6346
- run: make fmtcheck
6447
check-generate:
65-
needs:
66-
- get-go-version
6748
runs-on: ubuntu-latest
6849
name: Generate check
6950
steps:
7051
- uses: actions/checkout@v5
7152
- uses: actions/setup-go@v5
7253
with:
73-
go-version: ${{ needs.get-go-version.outputs.go-version }}
54+
go-version: stable
7455
- run: |
7556
export PATH=$PATH:$(go env GOPATH)/bin
7657
make generate

.github/workflows/integration-unit-test.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- name: Set up Go
2323
uses: actions/setup-go@v5
2424
with:
25-
go-version: ${{ needs.get-go-version.outputs.go-version }}
25+
go-version: stable
2626

2727
- name: Install go-junit-report
2828
run: go install github.com/jstemmer/go-junit-report/v2@latest
@@ -33,7 +33,6 @@ jobs:
3333

3434
- name: Run integration and unit tests
3535
run: |
36-
echo "Testing with Go ${{ needs.get-go-version.outputs.go-version }}"
3736
make test | go-junit-report -set-exit-code -iocopy -out "$REPORT_FILENAME"
3837
env:
3938
LINODE_TOKEN: ${{ secrets.LINODE_TOKEN }}

.github/workflows/release.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,12 @@ jobs:
2020
steps:
2121
- name: Checkout
2222
uses: actions/checkout@v5
23-
- name: Get Go version
24-
id: go-version
25-
run: echo "go-version=$(cat .go-version)" >> $GITHUB_OUTPUT
2623
- name: Unshallow
2724
run: git fetch --prune --unshallow
2825
- name: Set up Go
2926
uses: actions/setup-go@v5
3027
with:
31-
go-version: ${{ steps.go-version.outputs.go-version }}
28+
go-version: stable
3229
- name: Describe plugin
3330
id: plugin_describe
3431
run: echo "api_version=$(go run . describe | jq -r '.api_version')" >> "$GITHUB_OUTPUT"

.go-version

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)