5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-02 04:22:15 +08:00
wails/v2/Taskfile.yaml
Mike b42a18be6b
feat: add golangci workflow with some linters (#2957)
This implements the golangci-lint workflow to new PRs.
It includes a limited number of enabled linters including:
- errcheck
- errname
- gofmt
- gofumpt
- gosimple
- misspell

Signed-off-by: mikeee <hey@mike.ee>
Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
2023-10-21 16:47:02 +11:00

29 lines
492 B
YAML

# https://taskfile.dev
version: "3"
tasks:
download:
summary: Run go mod tidy
cmds:
- go mod tidy
lint:
summary: Run golangci-lint
cmds:
- golangci-lint run ./... --timeout=3m -v
release:
summary: Release a new version of Task. Call with `task v2:release -- <version>`
dir: tools/release
cmds:
- go run release.go {{.CLI_ARGS}}
format:md:
cmds:
- npx prettier --write "**/*.md"
format:
cmds:
- task: format:md