feat(api): Add logging middleware around handler #13
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
go-version: [1.21.3] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Set up Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: Run tests | |
run: | | |
go test ./... | |
- name: Run vet | |
run: | | |
go vet ./... | |
- name: Install staticcheck | |
run: | | |
go install honnef.co/go/tools/cmd/staticcheck@latest | |
- name: Run staticcheck | |
run: | | |
staticcheck -checks=all ./... | |
- name: Install govulncheck | |
run: | | |
go install golang.org/x/vuln/cmd/govulncheck@latest | |
- name: Run govulncheck | |
run: | | |
govulncheck ./... |