Skip to content

Latest commit

 

History

History
44 lines (31 loc) · 1.05 KB

README.md

File metadata and controls

44 lines (31 loc) · 1.05 KB

go-staticcheck

A GitHub Action for running staticcheck.

Usage

To use the GitHub Action, add the following to your job:

- uses: conventional-actions/go-staticcheck@v1

Inputs

Name Default Description
version latest the version of staticcheck to install
checks all comma-separated list of checks to enable
format json output format (valid choices are 'stylish', 'text' and 'json')
tags N/A comma-separated list of build tags

Outputs

No outputs

Example

on:
  push:
    branches:
      - main

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - uses: conventional-actions/go-staticcheck@v1

License

The scripts and documentation in this project are released under the MIT License.