Skip to content

mapped/revive-action

 
 

Repository files navigation

Revive Action

👉Same as morphy2k/revive-action but not using Docker.

Problems when using Docker:

  1. Takes time pull the image.
  2. Cannot upgrade Go quickly.

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

Usage

Prepare your workflow by adding the following steps:

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

- name: Set up Go
  uses: actions/setup-go@v5
  with:
    go-version: '1.23'

- name: Run Revive Action
  uses: mapped/revive-action@latest

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/..."

Screenshots

Screenshot of annotations

GitHub Annotations

About

Lint your Go code with Revive

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 63.3%
  • Shell 36.7%