.github/workflows/check-code.yml
raw| 1 | name: Check Code |
| 2 | on: |
| 3 | push: |
| 4 | |
| 5 | permissions: |
| 6 | contents: read |
| 7 | |
| 8 | jobs: |
| 9 | check-fmt: |
| 10 | runs-on: ubuntu-latest |
| 11 | steps: |
| 12 | - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 |
| 13 | - uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6.1.0 |
| 14 | with: |
| 15 | go-version-file: go.mod |
| 16 | - run: | |
| 17 | go fmt ./... |
| 18 | git diff --exit-code |