Run validate on push even when there is no release (#78) #8
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
on: | |
push: | |
branches: | |
- main | |
paths: | |
- "!pkg/**" | |
- "!main.go" | |
- "!go.mod" | |
- "**/*" | |
pull_request: | |
workflow_call: | |
# also update lefthook.yml | |
jobs: | |
validate: | |
name: Validate | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Build | |
uses: anttiharju/actions/build-go@v0 | |
with: | |
cache: false # Suppress warning about a 'missing' go.sum | |
- if: always() | |
name: Lint | |
uses: anttiharju/actions/lint-go@v0 | |
with: | |
version-file: ".golangci-version" | |
- if: always() | |
name: Actions | |
uses: anttiharju/actions/lint-actions@v0 | |
- if: always() | |
name: Docs | |
uses: anttiharju/actions/lint-docs@v0 | |
- if: always() | |
name: Prettier | |
uses: anttiharju/actions/check-prettier@v0 |