This repository was archived by the owner on Sep 13, 2026. It is now read-only.
chore: add make lint target #313
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: Go Tests | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: "stable" | |
| - name: Test | |
| run: CGO_ENABLED=0 go test -count=1 -v ./... | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: "stable" | |
| - name: Set up Bun | |
| uses: oven-sh/setup-bun@v2 | |
| - name: run linters | |
| run: make lint | |
| - name: Check for unstaged changes | |
| run: | | |
| make gen | |
| ./check_unstaged.sh |