diff --git a/.github/workflows/reviewdog.yaml b/.github/workflows/reviewdog.yaml new file mode 100644 index 0000000..67b90ea --- /dev/null +++ b/.github/workflows/reviewdog.yaml @@ -0,0 +1,42 @@ +name: reviewdog +on: [pull_request] + +jobs: + staticcheck: + name: staticcheck + runs-on: ubuntu-latest + steps: + - name: Check out code into the Go module directory + uses: actions/checkout@v3 + with: + persist-credentials: false + - name: staticcheck + uses: reviewdog/action-staticcheck@v1 + with: + reporter: github-pr-review + level: warning + + misspell: + name: misspell + runs-on: ubuntu-latest + steps: + - name: Check out code into the Go module directory + uses: actions/checkout@v3 + with: + persist-credentials: false + - name: misspell + uses: reviewdog/action-misspell@v1 + with: + reporter: github-pr-review + level: warning + locale: "US" + + actionlint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + persist-credentials: false + - uses: reviewdog/action-actionlint@v1 + with: + reporter: github-pr-review diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 13df7ce..7d19e48 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -12,16 +12,11 @@ jobs: - windows-latest steps: - name: setup go - uses: actions/setup-go@v2 + uses: actions/setup-go@v3 with: go-version: 1.x - name: checkout - uses: actions/checkout@v2 - - name: lint - run: | - go install golang.org/x/lint/golint@latest - golint -set_exit_status ./... - if: "matrix.os == 'ubuntu-latest' || matrix.os == 'macOS-latest'" + uses: actions/checkout@v3 - name: test run: | go test -coverprofile coverage.out ./... diff --git a/Makefile b/Makefile index d18c74f..1967979 100644 --- a/Makefile +++ b/Makefile @@ -12,7 +12,6 @@ deps: .PHONY: devel-deps devel-deps: - go install golang.org/x/lint/golint@latest go install github.com/tcnksm/ghr@latest go install github.com/Songmu/godzil/cmd/godzil@latest @@ -20,10 +19,6 @@ devel-deps: test: go test -.PHONY: lint -lint: devel-deps - golint -set_exit_status - .PHONY: build build: deps go build -ldflags=$(BUILD_LDFLAGS) ./cmd/ecschedule