Skip to content

Commit

Permalink
fix gitlab ci cache (setup-go) (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
jandelgado authored Aug 19, 2023
1 parent 5b3ae59 commit 1b6323e
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 18 deletions.
25 changes: 11 additions & 14 deletions .github/workflows/test_and_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: 1.20.x
- name: Checkout code
uses: actions/checkout@v3
go-version: 1.21.x
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
Expand All @@ -32,13 +32,12 @@ jobs:
matrix:
goversion: ["1.15", "1.16", "1.17", "1.18", "1.19", "1.20", "1.21"]
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install Go
if: success()
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.goversion }}
- name: Checkout code
uses: actions/checkout@v3
- name: Run tests
run: |
go version
Expand All @@ -51,19 +50,17 @@ jobs:
buildversion: ["1.15", "1.16", "1.17", "1.18", "1.19", "1.20", "1.21"]
testversion: ["1.15", "1.16", "1.17", "1.18", "1.19", "1.20", "1.21"]
steps:
- name: Install Go
if: success()
- name: Checkout code
uses: actions/checkout@v3
- name: Install Go to build artifact
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.buildversion }}
- name: Checkout code
uses: actions/checkout@v3
- name: Build binary for inttest
- name: Build artifact for inttest
run: |
go version
GO111MODULE=on make build-linux
- name: Install Go
if: success()
- name: Install Go for inttest
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.testversion }}
Expand All @@ -81,7 +78,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: 1.21
go-version: 1.21.x
- name: build
run: |
go version
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/upload_assets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ jobs:
name: build binaries
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: 1.20.x
- name: Checkout code
uses: actions/checkout@v3
go-version: 1.21.x
- name: build
run: |
make build
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/jandelgado/gcov2lcov

go 1.19
go 1.15

require github.com/stretchr/testify v1.8.1

Expand Down

0 comments on commit 1b6323e

Please sign in to comment.