Merge pull request #140 from rst0git/maintainers #412
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: verify | |
on: [ push, pull_request ] | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: golangci/golangci-lint-action@v3 | |
with: | |
version: latest | |
# Only show new issues for a pull request. | |
only-new-issues: true | |
gomod: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: verify go.mod/go.sum | |
run: | | |
go mod tidy | |
git diff --exit-code | |
lint_markdown: | |
runs-on: ubuntu-latest | |
permissions: | |
pull-requests: read | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: dorny/paths-filter@v2 | |
id: changes | |
with: | |
filters: | | |
md: | |
- 'README.md' | |
- name: Lint markdown | |
if: steps.changes.outputs.md == 'true' | |
uses: DavidAnson/markdownlint-cli2-action@v9 | |
with: | |
globs: | | |
README.md |