mirror of
https://github.com/planetmint/planetmint-go.git
synced 2025-03-30 15:08:28 +00:00
[CI] Add initial audit.yaml
https://www.alexedwards.net/blog/ci-with-go-and-github-actions // Closes #18 Signed-off-by: Julian Strobl <jmastr@mailbox.org>
This commit is contained in:
parent
eca002355f
commit
3bd2befbf0
45
.github/workflows/audit.yaml
vendored
Normal file
45
.github/workflows/audit.yaml
vendored
Normal file
@ -0,0 +1,45 @@
|
||||
---
|
||||
name: Audit
|
||||
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
audit:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
go-version: [ '1.19', '1.20' ]
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Setup Go
|
||||
uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: ${{ matrix.go-version }}
|
||||
|
||||
- name: Verify dependencies
|
||||
run: go mod verify
|
||||
|
||||
- name: Build
|
||||
run: go build -v ./...
|
||||
|
||||
- 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 ./...
|
||||
continue-on-error: true
|
||||
|
||||
- name: Install golint
|
||||
run: go install golang.org/x/lint/golint@latest
|
||||
|
||||
- name: Run golint
|
||||
run: golint -set_exit_status ./...
|
||||
continue-on-error: true
|
||||
|
||||
- name: Run tests
|
||||
run: go test -race -vet=off ./...
|
Loading…
x
Reference in New Issue
Block a user