👉Same as morphy2k/revive-action but not using Docker.
Problems when using Docker:
- Takes time pull the image.
- Cannot upgrade Go quickly.
This Action runs Revive on your Go code and adds annotations to the check.
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/..."
GitHub Annotations