Skip to content

Add functions to CLI #105

Add functions to CLI

Add functions to CLI #105

Workflow file for this run

name: Lint
on:
push:
branches: [main]
pull_request:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 1.22
cache: true
- name: run golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: v1.59
args: --timeout=3m
- name: install gofumpt
run: go install mvdan.cc/gofumpt@latest
- name: run gofumpt
run: |
ERRORS=$(gofumpt -l . | wc -l)
if [[ "$ERRORS" != "0" ]]; then
echo "following files are not gofumpted:"
gofumpt -l .
exit 1
fi