File tree Expand file tree Collapse file tree 2 files changed +8
-33
lines changed Expand file tree Collapse file tree 2 files changed +8
-33
lines changed Original file line number Diff line number Diff line change @@ -19,54 +19,29 @@ jobs:
19
19
strategy :
20
20
fail-fast : false
21
21
matrix :
22
- go-version :
23
- - 1.19.x
24
22
image :
25
23
- mongo:4.2
26
24
- mongo:4.4
27
25
- mongo:5.0
28
26
- percona/percona-server-mongodb:4.2
29
27
- percona/percona-server-mongodb:4.4
30
28
- percona/percona-server-mongodb:5.0
31
- os : [ubuntu-latest]
32
- may-fail : [false]
33
29
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
44
31
45
32
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
48
37
uses : actions/setup-go@v4
49
38
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
63
40
64
41
- name : Initialize dependencies and linters
65
- run : |
66
- make init
42
+ run : make init
67
43
68
44
- name : Diff
69
- if : startsWith( ${{ matrix.go-version }}, '1.17')
70
45
run : |
71
46
make format
72
47
git diff --exit-code
Original file line number Diff line number Diff line change 20
20
- name : Set up Go
21
21
uses : actions/setup-go@v4
22
22
with :
23
- go-version : 1.19
23
+ go-version-file : ${{ github.workspace }}/go.mod
24
24
25
25
- name : Login to Docker Hub
26
26
uses : docker/login-action@v2
You can’t perform that action at this time.
0 commit comments