@@ -15,36 +15,25 @@ concurrency:
1515env :
1616 GO111MODULE : " on"
1717 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
1919 TARGET_DELTA_COV : 90 # Target coverage of changed lines, in percents
2020jobs :
2121 test :
2222 strategy :
2323 matrix :
24- go-version : [ 1.16.x, 1.21.x, 1.22.x ]
24+ go-version : [ 1.16.x, stable, oldstable ]
2525 runs-on : ubuntu-latest
2626 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
3029 with :
3130 go-version : ${{ matrix.go-version }}
3231
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-
4332 - name : Checkout code
44- uses : actions/checkout@v3
33+ uses : actions/checkout@v4
4534
4635 - name : Go cache
47- uses : actions/cache@v3
36+ uses : actions/cache@v4
4837 with :
4938 # In order:
5039 # * Module download cache
5948 - name : Restore base test coverage
6049 id : base-coverage
6150 if : matrix.go-version == env.COV_GO_VERSION && github.event.pull_request.base.sha != ''
62- uses : actions/cache@v2
51+ uses : actions/cache@v4
6352 with :
6453 path : |
6554 unit-base.txt
@@ -130,7 +119,7 @@ jobs:
130119
131120 - name : Upload code coverage
132121 if : matrix.go-version == env.COV_GO_VERSION
133- uses : codecov/codecov-action@v1
122+ uses : codecov/codecov-action@v5
134123 with :
135- file : ./unit.coverprofile
124+ files : ./unit.coverprofile
136125 flags : unittests
0 commit comments