Skip to content

Commit

Permalink
Fix gha
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanjohnsontv committed Jan 4, 2024
1 parent a7d5929 commit 56fbba0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 18 deletions.
18 changes: 6 additions & 12 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,11 @@ jobs:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v4
- uses: actions/checkout@v2
- name: golangci-lint
uses: golangci/golangci-lint-action@v2
with:
go-version: ^1.21
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@v4

- name: Get dependencies
run: make setup
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
version: v1.55

- name: Lint
run: make lint
args: --skip-files .*_test.go --enable wsl --enable misspell --timeout 180s
6 changes: 0 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,6 @@ setup:
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh; \
dep ensure; \
fi; \
if ! command -v golangci-lint > /dev/null 2>&1; then \
echo "Installing golangci-lint..."; \
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin latest; \
else \
echo "golangci-lint is already installed."; \
fi

lint:
golangci-lint run --skip-files .*_test.go --enable wsl --enable misspell --timeout 180s

0 comments on commit 56fbba0

Please sign in to comment.