reviewdog / action-golangci-lint

Run golangci-lint with reviewdog

Home Page:https://github.com/marketplace?type=actions&query=reviewdog

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

on: [push] - reviewdog this is not a PullRequest build.

r10r opened this issue · comments

Hi, how can this action be run on other events than pull_request ?

Screenshot 2021-02-15 at 18 24 00

Rubens-MBP:crc16 ruben$ cat .github/workflows/reviewdog.yaml 
name: reviewdog
on: [push, pull_request]
jobs:
  golangci-lint:
    name: runner / golangci-lint
    runs-on: ubuntu-latest
    steps:
      - name: Check out code into the Go module directory
        uses: actions/checkout@v1
      - name: golangci-lint
        uses: reviewdog/action-golangci-lint@v1
        with:
          golangci_lint_flags: "--enable-all --exclude-use-default=false"

Ok I found it myself. Need to set reviewdog_flags: "--reporter=github-check"

name: reviewdog
on: [push, pull_request]
jobs:
  golangci-lint:
    name: runner / golangci-lint
    runs-on: ubuntu-latest
    steps:
      - name: Check out code into the Go module directory
        uses: actions/checkout@v1
      - name: golangci-lint
        uses: reviewdog/action-golangci-lint@v1
        with:
          golangci_lint_flags: "--enable-all --exclude-use-default=false"
          reviewdog_flags: "--reporter=github-check"