Skip to content

Update audit github actions #2

Update audit github actions

Update audit github actions #2

Workflow file for this run

name: Audit
on:
push:
branches: [ "main" ]
jobs:
audit:
name: Run audit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.21'
- name: Install staticcheck
run: go install honnef.co/go/tools/cmd/staticcheck@latest
- name: Create .envrc file
run: touch .envrc
- name: Run make audit
run: make audit
- name: Update coverage report
uses: ncruces/go-coverage-report@v0
with:
report: true
chart: true
amend: true
reuse-go: true
if: |
matrix.os == 'ubuntu-latest' &&
github.event_name == 'push'
continue-on-error: true