Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix gitlab ci cache (setup-go) #20

Merged
merged 2 commits into from
Aug 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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