clean up ci #62
Workflow file for this run
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: CI | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
main: | |
runs-on: ubuntu-latest | |
env: | |
CGO_ENABLED: 0 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Go ${{ env.GO_VERSION }} | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: go.mod | |
- name: Check and get dependencies | |
run: | | |
make tidy | |
git diff --exit-code go.mod go.sum | |
- name: Run golangci-lint | |
uses: golangci/golangci-lint-action@v6 | |
with: | |
args: --verbose | |
version: v1.62.0 | |
- name: Make | |
run: | | |
make test install | |
git diff --exit-code |