A composite github action template for running goreportcard-cli and grabbing the output for use elsewhere
I contribute to a number of private Golang repos that make it inconvenient to use 3rd party tools for things like goreportcard.com.
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}}
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.