Skip to content

SiaFoundation/action-golang-analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

golang-analysis

This action runs a set of analysis.Analyzers in a multichecker and provides annotations from the output.

Inputs

A list of analyzers is required.

Input Type Description Default
analyzers string Multiline list of analyzers none
directories string Multiline list of directories to pass to the analyzers. If multiple directories are to be passed simultaneously, place them on the same line and separate them with a space. none
failOnError bool Whether to fail if analyzer finds errors true

Usage

name: Analyzer
on:
  pull_request:
    branches: [ master ]
  push:
    branches: [ master ]

jobs:
  analyzer:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - uses: actions/setup-go@v3
      - uses: SiaFoundation/action-golang-analysis@HEAD
        with:
          analyzers: |
            go.sia.tech/jape.Analyzer
          directories: |
            autopilot
            bus bus/client
            worker worker/client

About

Run a set of golang.org/x/tools/go/analysis.Analyzers on a repository with GitHub Actions

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published