go-check-action

module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 5, 2020 License: MIT

README

go-check-action

Parse go/analysis reports and anotate diagnostics on the GitHub

Go Report Card Coverage Status Release

Example

Usage

step:
  - name: go vet
    run: go vet -json ./... 2> diagnostics.json

  - name: annotate diagnostics
    uses: kyoh86/go-check-action/annotate@v1
    with:
      level: error
      exit-code: 1

You can replace go vet with other custom go/analysis checkers if you want.

Parameters
Name Default Description
level warning Which level to annotate, warning or error
exit-code 0 Exit code when any diagnostics found
go-vet-json diagnostics.json A JSON file that a go/analysis (e.g. go vet -json) reported

LICENSE

MIT License

This is distributed under the MIT License.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL