chore(Makefile): add clean target to remove tools and coverage files … #425
This file contains 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: Go Lint | |
on: | |
push: | |
branches: | |
- 4.x | |
pull_request: | |
branches: | |
- 4.x | |
jobs: | |
golangci: | |
name: lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: stable | |
check-latest: true | |
cache-dependency-path: "**/go.sum" | |
- name: Tools cache | |
uses: actions/cache@v4 | |
env: | |
cache-name: go-tools-cache | |
with: | |
path: .tools | |
key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('./internal/tools/**') }} | |
- name: Run lint | |
run: make lint | |
- name: Build | |
run: make build | |
- name: Check clean repository | |
run: make check-clean-work-tree |