Skip to content

Commit

Permalink
bump CI actions, use single .golangci.yml file for all versions
Browse files Browse the repository at this point in the history
  • Loading branch information
paskal committed Feb 20, 2024
1 parent e81ac90 commit f88a897
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 55 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/ci-v2.yml
Expand Up @@ -18,13 +18,13 @@ jobs:

steps:
- name: set up go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: "1.20"
id: go

- name: checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: build and test
run: |
Expand All @@ -33,9 +33,10 @@ jobs:
working-directory: v2

- name: golangci-lint
uses: golangci/golangci-lint-action@v3
uses: golangci/golangci-lint-action@v4
with:
version: latest
args: --config ../.golangci.yml
working-directory: v2

- name: install goveralls, submit coverage
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Expand Up @@ -18,21 +18,21 @@ jobs:

steps:
- name: set up go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: "1.20"
id: go

- name: checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: build and test
run: |
go test -timeout=60s -race -covermode=atomic -coverprofile=$GITHUB_WORKSPACE/profile.cov
go build -race
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
uses: golangci/golangci-lint-action@v4
with:
version: latest

Expand Down
7 changes: 2 additions & 5 deletions .golangci.yml
Expand Up @@ -15,6 +15,7 @@ linters-settings:

linters:
enable:
- megacheck
- revive
- govet
- unconvert
Expand All @@ -23,7 +24,6 @@ linters:
- gocyclo
- dupl
- misspell
- unparam
- typecheck
- ineffassign
- stylecheck
Expand All @@ -41,7 +41,4 @@ run:
output:
format: tab
skip-dirs:
- vendor

issues:
exclude-use-default: false
- vendor
44 changes: 0 additions & 44 deletions v2/.golangci.yml

This file was deleted.

0 comments on commit f88a897

Please sign in to comment.