@@ -15,36 +15,25 @@ concurrency:
15
15
env :
16
16
GO111MODULE : " on"
17
17
RUN_BASE_COVERAGE : " on" # Runs test for PR base in case base test coverage is missing.
18
- COV_GO_VERSION : 1.22.x # Version of Go to collect coverage
18
+ COV_GO_VERSION : stable # Version of Go to collect coverage
19
19
TARGET_DELTA_COV : 90 # Target coverage of changed lines, in percents
20
20
jobs :
21
21
test :
22
22
strategy :
23
23
matrix :
24
- go-version : [ 1.21.x, 1.22.x, 1.23.x ]
24
+ go-version : [ stable, oldstable ]
25
25
runs-on : ubuntu-latest
26
26
steps :
27
- - name : Install Go stable
28
- if : matrix.go-version != 'tip'
29
- uses : actions/setup-go@v4
27
+ - name : Install Go
28
+ uses : actions/setup-go@v5
30
29
with :
31
30
go-version : ${{ matrix.go-version }}
32
31
33
- - name : Install Go tip
34
- if : matrix.go-version == 'tip'
35
- run : |
36
- curl -sL https://storage.googleapis.com/go-build-snap/go/linux-amd64/$(git ls-remote https://github.com/golang/go.git HEAD | awk '{print $1;}').tar.gz -o gotip.tar.gz
37
- ls -lah gotip.tar.gz
38
- mkdir -p ~/sdk/gotip
39
- tar -C ~/sdk/gotip -xzf gotip.tar.gz
40
- ~/sdk/gotip/bin/go version
41
- echo "PATH=$HOME/go/bin:$HOME/sdk/gotip/bin/:$PATH" >> $GITHUB_ENV
42
-
43
32
- name : Checkout code
44
- uses : actions/checkout@v3
33
+ uses : actions/checkout@v4
45
34
46
35
- name : Go cache
47
- uses : actions/cache@v3
36
+ uses : actions/cache@v4
48
37
with :
49
38
# In order:
50
39
# * Module download cache
59
48
- name : Restore base test coverage
60
49
id : base-coverage
61
50
if : matrix.go-version == env.COV_GO_VERSION && github.event.pull_request.base.sha != ''
62
- uses : actions/cache@v2
51
+ uses : actions/cache@v4
63
52
with :
64
53
path : |
65
54
unit-base.txt
@@ -130,7 +119,7 @@ jobs:
130
119
131
120
- name : Upload code coverage
132
121
if : matrix.go-version == env.COV_GO_VERSION
133
- uses : codecov/codecov-action@v1
122
+ uses : codecov/codecov-action@v5
134
123
with :
135
- file : ./unit.coverprofile
124
+ files : ./unit.coverprofile
136
125
flags : unittests
0 commit comments