Add Linter for Go code.

This commit is contained in:
Andrew Walsh 2023-11-26 20:30:09 -08:00
parent 189ae35b68
commit 3b5900ec5a

View file

@ -3,6 +3,9 @@ on:
pull_request: pull_request:
types: [opened, synchronize] types: [opened, synchronize]
permissions:
contents: read
jobs: jobs:
build_test: build_test:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -14,7 +17,10 @@ jobs:
uses: actions/setup-go@v4 uses: actions/setup-go@v4
with: with:
go-version: 1.20 go-version: 1.20
- name: Lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.54
- name: Build and test - name: Build and test
run: | run: |
go build -v go build -v