Merge pull request #147 from modelpack/dependabot/github_actions/crat… #405
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: Lint | |
| on: | |
| push: | |
| branches: [main, release-*] | |
| pull_request: | |
| branches: [main, release-*] | |
| permissions: | |
| contents: read | |
| jobs: | |
| lint: | |
| name: Lint | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 30 | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 | |
| - uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c | |
| with: | |
| go-version-file: go.mod | |
| cache: false | |
| - name: Golangci lint | |
| uses: golangci/golangci-lint-action@v9 | |
| with: | |
| version: v2.1.0 | |
| args: --verbose | |
| - name: Markdown lint | |
| uses: docker://avtodev/markdown-lint:v1@sha256:6aeedc2f49138ce7a1cd0adffc1b1c0321b841dc2102408967d9301c031949ee | |
| with: | |
| config: '.markdownlint.yml' | |
| args: '**/*.md' | |
| - name: Typo lint | |
| uses: crate-ci/typos@2d0ce569feab1f8752f1dde43cc2f2aa53236e06 # v1.40.0 | |
| with: | |
| config: .typos.toml | |
| - name: Example lint | |
| run: make validate-examples | |
| - name: Run tests | |
| run: make test |