Skip to content

Commit 3946c76

Browse files
committed
chore: prepare CI
1 parent 176ef3f commit 3946c76

File tree

4 files changed

+19
-6
lines changed

4 files changed

+19
-6
lines changed

.github/workflows/post-release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ jobs:
1414
- name: Install Go
1515
uses: actions/setup-go@v2
1616
with:
17-
go-version: 1.17
17+
stable: 'false'
18+
go-version: 1.18.0-rc1
1819

1920
- name: Update GitHub action config
2021
run: make assets/github-action-config.json

.github/workflows/pr-extra.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ jobs:
1212
steps:
1313
- uses: actions/checkout@v2
1414
- uses: actions/setup-go@v2
15+
with:
16+
stable: 'false'
17+
go-version: 1.18.0-rc1
1518
- name: Run go list
1619
run: go list -json -m all > go.list
1720
- name: Nancy

.github/workflows/pr.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
pull_request:
77

88
env:
9-
GO_VERSION: 1.17
9+
GO_VERSION: 1.18.0-rc1
1010

1111
jobs:
1212
# Check if there any dirty change for go mod tidy
@@ -16,6 +16,7 @@ jobs:
1616
- name: Install Go
1717
uses: actions/setup-go@v2
1818
with:
19+
stable: 'false'
1920
go-version: ${{ env.GO_VERSION }}
2021
- name: Checkout code
2122
uses: actions/checkout@v2
@@ -33,7 +34,9 @@ jobs:
3334
- name: Install Go
3435
uses: actions/setup-go@v2
3536
with:
36-
go-version: ${{ env.GO_VERSION }}
37+
go-version: 1.17 # TODO(ldez) the binary compile with go1.17 doesn't work on go1.18
38+
# stable: 'false' # TODO(ldez) the binary compile with go1.17 doesn't work on go1.18
39+
# go-version: ${{ env.GO_VERSION }} # TODO(ldez) the binary compile with go1.17 doesn't work on go1.18
3740
- name: lint
3841
uses: golangci/[email protected]
3942
with:
@@ -50,6 +53,7 @@ jobs:
5053
- name: Install Go
5154
uses: actions/setup-go@v2
5255
with:
56+
stable: 'false'
5357
go-version: ${{ env.GO_VERSION }} # test only the latest go version to speed up CI
5458
- name: Run tests
5559
run: make.exe test
@@ -63,6 +67,7 @@ jobs:
6367
- name: Install Go
6468
uses: actions/setup-go@v2
6569
with:
70+
stable: 'false'
6671
go-version: ${{ env.GO_VERSION }} # test only the latest go version to speed up CI
6772
- name: Run tests
6873
run: make test
@@ -73,13 +78,14 @@ jobs:
7378
strategy:
7479
matrix:
7580
golang:
76-
- 1.16
7781
- 1.17
82+
- 1.18.0-rc1
7883
steps:
7984
- uses: actions/checkout@v2
8085
- name: Install Go
8186
uses: actions/setup-go@v2
8287
with:
88+
stable: 'false'
8389
go-version: ${{ matrix.golang }}
8490
- uses: actions/[email protected]
8591
with:
@@ -103,6 +109,7 @@ jobs:
103109
- name: Install Go
104110
uses: actions/setup-go@v2
105111
with:
112+
stable: 'false'
106113
go-version: ${{ env.GO_VERSION }}
107114
- name: Check generated files are up to date
108115
run: make fast_check_generated

.github/workflows/tag.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ jobs:
1414
- name: Install Go
1515
uses: actions/setup-go@v2
1616
with:
17-
go-version: 1.17
17+
stable: 'false'
18+
go-version: 1.18.0-rc1
1819
- name: Unshallow
1920
run: git fetch --prune --unshallow
2021

@@ -40,7 +41,8 @@ jobs:
4041
- name: Install Go
4142
uses: actions/setup-go@v2
4243
with:
43-
go-version: 1.17
44+
stable: 'false'
45+
go-version: 1.18.0-rc1
4446

4547
- name: Unshallow
4648
run: git fetch --prune --unshallow

0 commit comments

Comments
 (0)