Skip to content

Commit

Permalink
fix CI problem related to (missing) golang installation
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Fossati <[email protected]>
  • Loading branch information
thomas-fossati committed May 21, 2024
1 parent 767bbd6 commit 2e9ff58
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 12 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/ci-go-cover.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ jobs:
cover:
name: Coverage
runs-on: ubuntu-latest
env:
GO111MODULE: on
steps:
- uses: actions/setup-go@v3
with:
Expand All @@ -32,5 +30,4 @@ jobs:
run: |
go version
make test-cover | grep -o "coverage:.*of statements$" | python scripts/cov.py
shell: bash
11 changes: 5 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,14 @@ jobs:
matrix:
os: [macos-latest, ubuntu-latest]
steps:
- uses: actions/setup-go@v3
with:
go-version: "1.18"
- name: Checkout code
uses: actions/checkout@v1
uses: actions/checkout@v2
with:
fetch-depth: 1
- name: Get dependencies
run: go get -v -t -d ./...
- name: Build project
run: go build ./...
- name: Run tests
run: |
go version
go test -short -race -v ./...
make test
4 changes: 1 addition & 3 deletions .github/workflows/linters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ jobs:
lint:
name: Lint
runs-on: ubuntu-latest
env:
GO111MODULE: on
steps:
- uses: actions/setup-go@v3
with:
Expand All @@ -18,4 +16,4 @@ jobs:
go version
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.53.2
- name: Run required linters in .golangci.yml plus hard-coded ones here
run: make -w GOLINT=$(go env GOPATH)/bin/golangci-lint lint
run: make lint

0 comments on commit 2e9ff58

Please sign in to comment.