Skip to content

Commit af2a77f

Browse files
author
Alex Tymchuk
authored
PMM-12339 remove go tip (#689)
* PMM-12339 remove go tip * PMM-12339 use Go version from go.mod * PMM-12339 fix the order of steps
1 parent 2843270 commit af2a77f

File tree

2 files changed

+8
-33
lines changed

2 files changed

+8
-33
lines changed

.github/workflows/go.yml

Lines changed: 7 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -19,54 +19,29 @@ jobs:
1919
strategy:
2020
fail-fast: false
2121
matrix:
22-
go-version:
23-
- 1.19.x
2422
image:
2523
- mongo:4.2
2624
- mongo:4.4
2725
- mongo:5.0
2826
- percona/percona-server-mongodb:4.2
2927
- percona/percona-server-mongodb:4.4
3028
- percona/percona-server-mongodb:5.0
31-
os: [ubuntu-latest]
32-
may-fail: [false]
3329

34-
include:
35-
# test only one image on tip to detect major Go changes earlier
36-
# without wasting too much time on CI
37-
- go-version: tip
38-
image: mongo:4.4
39-
os: ubuntu-latest
40-
may-fail: true
41-
42-
continue-on-error: ${{ matrix.may-fail }}
43-
runs-on: ${{ matrix.os }}
30+
runs-on: ubuntu-latest
4431

4532
steps:
46-
- name: Set up Go release
47-
if: matrix.go-version != 'tip'
33+
- name: Checkout code
34+
uses: actions/checkout@v3
35+
36+
- name: Set up Go
4837
uses: actions/setup-go@v4
4938
with:
50-
go-version: ${{ matrix.go-version }}
51-
52-
- name: Set up Go tip
53-
if: matrix.go-version == 'tip'
54-
run: |
55-
git clone --depth=1 https://go.googlesource.com/go $HOME/gotip
56-
cd $HOME/gotip/src
57-
./make.bash
58-
echo "GOROOT=$HOME/gotip" >> $GITHUB_ENV
59-
echo "$HOME/gotip/bin" >> $GITHUB_PATH
60-
61-
- name: Check out code into the Go module directory
62-
uses: actions/checkout@v3
39+
go-version-file: ${{ github.workspace }}/go.mod
6340

6441
- name: Initialize dependencies and linters
65-
run: |
66-
make init
42+
run: make init
6743

6844
- name: Diff
69-
if: startsWith( ${{ matrix.go-version }}, '1.17')
7045
run: |
7146
make format
7247
git diff --exit-code

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- name: Set up Go
2121
uses: actions/setup-go@v4
2222
with:
23-
go-version: 1.19
23+
go-version-file: ${{ github.workspace }}/go.mod
2424

2525
- name: Login to Docker Hub
2626
uses: docker/login-action@v2

0 commit comments

Comments
 (0)