revive action
v2.7.1
이 조치는 GO 코드에서 부활하고 수표에 주석을 추가합니다.
- name : Check out code into the Go module directory
uses : actions/checkout@v4- name : Run Revive Action by pulling pre-built image
uses : docker://morphy/revive-action:v2 - name : Run Revive Action by pulling pre-built image
uses : docker://ghcr.io/morphy2k/revive-action:v2 메모
사전 구축 된 이미지를 사용하는 것은 더 리소스 효율적이며 실행 시간이 짧습니다.
- name : Run Revive Action by building from repository
uses : morphy2k/revive-action@v2 with :
# Path to your Revive config within the repo (optional)
config : revive.toml
# Exclude patterns (default: vendor/...)
exclude : |
file.go
foo/bar.go
./foo/bar/...
# Path pattern (default: ./...)
path : ./foo/...
# Fail on any issue. Overrides the error and warning code in config (default: false)
fail-on-any : true name : Lint
on :
pull_request :
push :
paths :
- ' **.go '
- ' go.mod '
- ' go.sum '
- ' revive.toml '
jobs :
lint :
name : Lint
runs-on : ubuntu-latest
steps :
- name : Check out code into the Go module directory
uses : actions/checkout@v4
- name : Run Revive Action
uses : docker://morphy/revive-action:v2
with :
config : revive.toml 
github 주석