Skip to content

Commit

Permalink
Add go vet to CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
oerlikon committed Nov 5, 2022
1 parent 4e5b48c commit c6941e6
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions .github/workflows/ci.yml
@@ -1,18 +1,26 @@
name: CI

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
unit-tests:
name: Go unit tests
audit:
name: Audit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: '1.18'
- run: go version
- run: go test -v -cover .

- name: Checkout repo
uses: actions/checkout@v3

- name: Run go vet
run: go vet .

- name: Run go test
run: go test -v -cover -vet=off .

0 comments on commit c6941e6

Please sign in to comment.