Skip to content

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

License

Notifications You must be signed in to change notification settings

huuchau90/action-golang-analysis

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 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
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

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

Languages

  • JavaScript 64.7%
  • TypeScript 35.3%