Skip to content

Commit

Permalink
create audit github action
Browse files Browse the repository at this point in the history
  • Loading branch information
koestler committed Apr 7, 2023
1 parent 147fe38 commit 4668ed9
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/audit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Audit

on:
push:
branches:
- '*'
tags:
- '*'

jobs:
audit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.20'

- name: Verify dependencies
run: go mod verify

- name: Run go vet
run: go vet ./...

- name: Install staticcheck
run: go install honnef.co/go/tools/cmd/staticcheck@latest

- name: Run staticcheck
run: staticcheck ./...

0 comments on commit 4668ed9

Please sign in to comment.