Skip to content

Commit dd40a73

Browse files
Merge pull request #16 from veraison/fix-ci
fix CI problem related to (missing) golang installation
2 parents 767bbd6 + 2e9ff58 commit dd40a73

File tree

3 files changed

+6
-12
lines changed

3 files changed

+6
-12
lines changed

.github/workflows/ci-go-cover.yml

-3
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ jobs:
2020
cover:
2121
name: Coverage
2222
runs-on: ubuntu-latest
23-
env:
24-
GO111MODULE: on
2523
steps:
2624
- uses: actions/setup-go@v3
2725
with:
@@ -32,5 +30,4 @@ jobs:
3230
run: |
3331
go version
3432
make test-cover | grep -o "coverage:.*of statements$" | python scripts/cov.py
35-
3633
shell: bash

.github/workflows/ci.yml

+5-6
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,14 @@ jobs:
1212
matrix:
1313
os: [macos-latest, ubuntu-latest]
1414
steps:
15+
- uses: actions/setup-go@v3
16+
with:
17+
go-version: "1.18"
1518
- name: Checkout code
16-
uses: actions/checkout@v1
19+
uses: actions/checkout@v2
1720
with:
1821
fetch-depth: 1
19-
- name: Get dependencies
20-
run: go get -v -t -d ./...
21-
- name: Build project
22-
run: go build ./...
2322
- name: Run tests
2423
run: |
2524
go version
26-
go test -short -race -v ./...
25+
make test

.github/workflows/linters.yml

+1-3
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ jobs:
55
lint:
66
name: Lint
77
runs-on: ubuntu-latest
8-
env:
9-
GO111MODULE: on
108
steps:
119
- uses: actions/setup-go@v3
1210
with:
@@ -18,4 +16,4 @@ jobs:
1816
go version
1917
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.53.2
2018
- name: Run required linters in .golangci.yml plus hard-coded ones here
21-
run: make -w GOLINT=$(go env GOPATH)/bin/golangci-lint lint
19+
run: make lint

0 commit comments

Comments
 (0)