Skip to content

Commit

Permalink
Merge pull request #42 from pior/ci
Browse files Browse the repository at this point in the history
Upgrade Go, linter and github actions
  • Loading branch information
pior authored Mar 25, 2024
2 parents a06be4b + de8dc9f commit 8649723
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,20 @@ jobs:
name: golang lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: golangci-lint
uses: golangci/golangci-lint-action@v2
uses: golangci/golangci-lint-action@v4
with:
version: v1.53
version: v1.57.1

gomodtidy:
name: go mod tidy check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/setup-go@v3
with:
go-version: '1.20'
go-version: '1.22'
check-latest: true
- run: go mod tidy
- run: git diff --exit-code -- go.mod go.sum
Expand All @@ -34,9 +34,10 @@ jobs:
name: golang test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/setup-go@v3
with:
go-version: '1.20'
go-version: '1.22'
check-latest: true
- run: go test -cover -race ./...

6 changes: 3 additions & 3 deletions dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@ env:

up:
- go:
version: 1.20.5
version: 1.22.1
modules: true
- custom:
name: Create local install directory
met?: '[ "*" = "`cat .devbuddy/.gitignore`" ]'
meet: mkdir -p .devbuddy && echo '*' > .devbuddy/.gitignore
- custom:
name: Install golangci-lint
met?: test -x .devbuddy/golangci-lint && .devbuddy/golangci-lint --version | grep -q 'v1.53.3'
meet: GOBIN=$PWD/.devbuddy go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.53.3
met?: test -x .devbuddy/golangci-lint && .devbuddy/golangci-lint --version | grep -q 'v1.57.1'
meet: GOBIN=$PWD/.devbuddy go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.57.1

commands:
test: go test -cover -race ./...
Expand Down

0 comments on commit 8649723

Please sign in to comment.