Skip to content

Runs Go Report Card as a composite github action using goreportcard-cli and provides output

License

Notifications You must be signed in to change notification settings

jacobkring/actions-goreportcard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

Actions Go Report Card

A composite github action template for running goreportcard-cli and grabbing the output for use elsewhere

Motivation

I contribute to a number of private Golang repos that make it inconvenient to use 3rd party tools for things like goreportcard.com.

Usage

Workflow

In your workflow file you should include the inputs you want.

on: [push]

jobs:
  action_goreportcard:
    runs-on: ubuntu-latest
    name: A job to run go report card
    steps:
      - name: Go Report Card
        id: goreportcard
        uses: jacobkring/[email protected]
        with:
          threshold: "-t 85"
          verbose: "-v"
      - name: results
        run: |
          echo ${{ steps.goreportcard.outputs.summary}}

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

Apache v2.0

About

Runs Go Report Card as a composite github action using goreportcard-cli and provides output

Resources

License

Stars

Watchers

Forks

Packages

No packages published