diff --git a/.github/workflows/linting.yml b/.github/workflows/linting.yml index b5c8960..5279931 100644 --- a/.github/workflows/linting.yml +++ b/.github/workflows/linting.yml @@ -23,10 +23,10 @@ jobs: - name: "fmt" run: if [ "$(go fmt ./... | wc -l)" -gt 0 ]; then echo "go fmt failed, please run again locally"; exit 1; fi if: matrix.os == 'ubuntu-latest' - - name: "imports" + - run: "go install honnef.co/go/tools/cmd/staticcheck@latest" run: if [ "$(goimports -l . | wc -l)" -gt 0 ]; then echo "goimports failed, please run again locally"; exit 1; fi - name: "vet" run: "go vet ./..." - - run: "go install honnef.co/go/tools/cmd/staticcheck@latest" - name: staticcheck + - run: "go install honnef.co/go/tools/cmd/staticcheck@latest" run: "staticcheck ./..." diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 6ae8121..2e555ab 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -1,4 +1,4 @@ -name: linting +name: unit-tests on: ["push", "pull_request"]