Skip to content

blackprism/revive-action

 
 

Repository files navigation

Revive Action

This Action runs Revive on your Go code and adds optional annotations to the check.

Usage

Checkout

- name: Check out code into the Go module directory
  uses: actions/checkout@v2

Use by building from repository

- name: Run Revive Action by building from repository
  uses: morphy2k/revive-action@v1

Use by pulling pre-built image

- name: Run Revive Action by pulling pre-built image
  uses: docker://morphy/revive-action:v1

Configuration

  with:
    # Path to your Revive config within the repo (optional)
    config: revive/config.toml
    # Exclude patterns, separated by semicolons (optional)
    exclude: "file.go;foo/bar.go;./foo/bar/..."
    # Path pattern (default: ./...)
    path: "./foo/..."
    # Name of the check (default: revive-action)
    name: "Revive"
  env:
    # GitHub token for annotations (optional)
    GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Screenshots

Screenshot of annotations

GitHub Annotations

About

Lint your Go code with Revive

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 79.8%
  • Dockerfile 11.0%
  • Shell 9.2%