Skip to content

Move linters to github actions #2

Move linters to github actions

Move linters to github actions #2

Workflow file for this run

name: Lints
on:
pull_request:
push:
branches: [main]
jobs:
golint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
# Setup nodejs and build the webui so that go vet can
# compile the go code that embeds the webui.
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 21
- run: cd webui && npm install
- run: cd webui && npm run build
- uses: actions/setup-go@v4
with:
go-version: '1.20.6'
cache: false
- run: go mod tidy
- run: go install github.com/golangci/golangci-lint/cmd/[email protected]
- uses: pre-commit/[email protected]