mirror of
https://github.com/awalsh128/cache-apt-pkgs-action.git
synced 2025-12-24 20:31:27 +00:00
force local lint test
This commit is contained in:
parent
a94ac1b452
commit
3b480a1e9b
17
.github/workflows/pull_request.yml
vendored
17
.github/workflows/pull_request.yml
vendored
|
|
@ -20,24 +20,11 @@ jobs:
|
|||
|
||||
- name: Build and test go binaries
|
||||
run: | #shell
|
||||
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.52.2
|
||||
$(go env GOPATH)/bin/golangci-lint run
|
||||
go build -v ./...
|
||||
go test -v ./...
|
||||
|
||||
- name: Lint (external action)
|
||||
if: vars.USE_LOCAL_LINTER != 'true'
|
||||
uses: golangci/golangci-lint-action@v3
|
||||
with:
|
||||
version: v1.52.2
|
||||
|
||||
- name: Lint (local)
|
||||
if: vars.USE_LOCAL_LINTER == 'true'
|
||||
run: | #shell
|
||||
# Install golangci-lint
|
||||
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.52.2
|
||||
|
||||
# Run linter
|
||||
$(go env GOPATH)/bin/golangci-lint run
|
||||
|
||||
- name: Build apt_query binaries
|
||||
run: | #shell
|
||||
cd src/cmd/apt_query
|
||||
|
|
|
|||
Loading…
Reference in a new issue