workflow change: Separate lint from test workflow #4
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: Pull Request | |
on: pull_request | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: 'stable' | |
- run: go version | |
- name: Run tidy | |
run: make tidy | |
- name: Run fmt | |
run: go fmt ./... | |
- name: Run linter | |
run: make lint | |
- name: Fail if changes | |
run: git diff-index --exit-code HEAD |