ci: clean up workflows #2
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: Lint and Check Formatting | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
lint: | |
name: Lint and Check Formatting | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v5 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: "go.mod" | |
cache: true | |
- name: Install dependencies | |
run: go mod download | |
- name: Lint with golangci-lint | |
uses: golangci/golangci-lint-action@v8 | |
with: | |
version: latest | |
- name: Run gofumpt | |
run: go tool gofumpt -d -l . |