diff --git a/.github/workflows/ci-go.yml b/.github/workflows/ci-go.yml index 5ed32c2..b521162 100644 --- a/.github/workflows/ci-go.yml +++ b/.github/workflows/ci-go.yml @@ -24,8 +24,8 @@ jobs: with: go-version-file: 'go.mod' cache-dependency-path: 'go.sum' - - run: go test - - run: go build -v -race + - run: go test ./... + - run: go build -v -race ./... lint: runs-on: ubuntu-latest steps: @@ -35,10 +35,8 @@ jobs: with: go-version-file: 'go.mod' cache-dependency-path: 'go.sum' - - name: lint - run: go vet - - name: format - run: go fmt && git add --intent-to-add . && git diff --exit-code + - run: go vet ./... + - run: go fmt ./... && git add --intent-to-add . && git diff --exit-code # Because of default in vscode extension staticcheck: runs-on: ubuntu-latest diff --git a/Taskfile.yml b/Taskfile.yml index e520a14..c02b7ed 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -19,18 +19,18 @@ tasks: - go build -o ./dist/nixpkgs-url ./cmd/nixpkgs-url test: cmds: - - go test + - go test ./... fmt: cmds: - typos . .github .vscode --write-changes - dprint fmt - - go fmt + - go fmt ./... - nixpkgs-fmt ./*.nix lint: # go fmt does not have option for no effect - https://github.com/golang/go/issues/41189 cmds: - dprint check - - go vet + - go vet ./... - goreleaser check - typos . .github .vscode - nixpkgs-fmt --check ./*.nix