Enable to customize completion commands #495
Workflow file for this run
This file contains hidden or 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: Run lints | |
on: | |
push: | |
tags: | |
- v3.* | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
permissions: | |
contents: read | |
jobs: | |
format: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: stable | |
- name: Set up gofumpt | |
run: go install mvdan.cc/gofumpt@latest | |
- name: Run gofumpt | |
run: | | |
non_formatted_files="$(gofumpt -l .)" | |
echo "$non_formatted_files" | |
test -z "$non_formatted_files" | |
golangci-lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: stable | |
- name: Run golangci-lint | |
uses: golangci/golangci-lint-action@v7 | |
with: | |
version: latest |