Skip to content

Commit 1b6323e

Browse files
authored
fix gitlab ci cache (setup-go) (#20)
1 parent 5b3ae59 commit 1b6323e

File tree

3 files changed

+15
-18
lines changed

3 files changed

+15
-18
lines changed

.github/workflows/test_and_build.yml

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ jobs:
1111
lint:
1212
runs-on: ubuntu-latest
1313
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v3
1416
- name: Install Go
1517
uses: actions/setup-go@v4
1618
with:
17-
go-version: 1.20.x
18-
- name: Checkout code
19-
uses: actions/checkout@v3
19+
go-version: 1.21.x
2020
- name: golangci-lint
2121
uses: golangci/golangci-lint-action@v3
2222
with:
@@ -32,13 +32,12 @@ jobs:
3232
matrix:
3333
goversion: ["1.15", "1.16", "1.17", "1.18", "1.19", "1.20", "1.21"]
3434
steps:
35+
- name: Checkout code
36+
uses: actions/checkout@v3
3537
- name: Install Go
36-
if: success()
3738
uses: actions/setup-go@v4
3839
with:
3940
go-version: ${{ matrix.goversion }}
40-
- name: Checkout code
41-
uses: actions/checkout@v3
4241
- name: Run tests
4342
run: |
4443
go version
@@ -51,19 +50,17 @@ jobs:
5150
buildversion: ["1.15", "1.16", "1.17", "1.18", "1.19", "1.20", "1.21"]
5251
testversion: ["1.15", "1.16", "1.17", "1.18", "1.19", "1.20", "1.21"]
5352
steps:
54-
- name: Install Go
55-
if: success()
53+
- name: Checkout code
54+
uses: actions/checkout@v3
55+
- name: Install Go to build artifact
5656
uses: actions/setup-go@v4
5757
with:
5858
go-version: ${{ matrix.buildversion }}
59-
- name: Checkout code
60-
uses: actions/checkout@v3
61-
- name: Build binary for inttest
59+
- name: Build artifact for inttest
6260
run: |
6361
go version
6462
GO111MODULE=on make build-linux
65-
- name: Install Go
66-
if: success()
63+
- name: Install Go for inttest
6764
uses: actions/setup-go@v4
6865
with:
6966
go-version: ${{ matrix.testversion }}
@@ -81,7 +78,7 @@ jobs:
8178
- name: Install Go
8279
uses: actions/setup-go@v4
8380
with:
84-
go-version: 1.21
81+
go-version: 1.21.x
8582
- name: build
8683
run: |
8784
go version

.github/workflows/upload_assets.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ jobs:
88
name: build binaries
99
runs-on: ubuntu-latest
1010
steps:
11+
- name: Checkout code
12+
uses: actions/checkout@v3
1113
- name: Install Go
1214
uses: actions/setup-go@v4
1315
with:
14-
go-version: 1.20.x
15-
- name: Checkout code
16-
uses: actions/checkout@v3
16+
go-version: 1.21.x
1717
- name: build
1818
run: |
1919
make build

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/jandelgado/gcov2lcov
22

3-
go 1.19
3+
go 1.15
44

55
require github.com/stretchr/testify v1.8.1
66

0 commit comments

Comments
 (0)