Skip to content

Commit

Permalink
Merge pull request #9 from jeremmfr/fix-workflows-golint
Browse files Browse the repository at this point in the history
Update workflows jobs
  • Loading branch information
jeremmfr authored Nov 15, 2022
2 parents f0db826 + b5c96f0 commit 1aa4464
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 2 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,20 @@ jobs:
id: go
- name: Check out code
uses: actions/checkout@v3
- name: Test
run: go test -v ./...

test-1_19:
name: Test 1.19
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.19
uses: actions/setup-go@v3
with:
go-version: 1.19
id: go
- name: Check out code
uses: actions/checkout@v3
- name: Test
run: go test -v ./... -coverprofile=coverage.txt -covermode=atomic

Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/golangci-lint-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,16 @@ jobs:
name: Run
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.19
uses: actions/setup-go@v3
with:
go-version: 1.19
check-latest: true
id: go
- name: Check out code
uses: actions/checkout@v3
- name: golangci-lint
uses: golangci/golangci-lint-action@v3.3.0
uses: golangci/golangci-lint-action@v3
with:
version: latest
args: -c .golangci.yml -v
8 changes: 7 additions & 1 deletion .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,16 @@ jobs:
name: Run
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.19
uses: actions/setup-go@v3
with:
go-version: 1.19
check-latest: true
id: go
- name: Check out code
uses: actions/checkout@v3
- name: golangci-lint
uses: golangci/golangci-lint-action@v3.3.0
uses: golangci/golangci-lint-action@v3
with:
version: v1.50
args: -c .golangci.yml -v

0 comments on commit 1aa4464

Please sign in to comment.