Skip to content

Merge pull request #7858 from cri-o/dependabot/github_actions/actions… #33

Merge pull request #7858 from cri-o/dependabot/github_actions/actions…

Merge pull request #7858 from cri-o/dependabot/github_actions/actions… #33

Workflow file for this run

name: verify
on:
push:
tags:
- v*
branches:
- main
- release-*
- update-nixpkgs-*
pull_request:
env:
GO_VERSION: '1.22'
GOLANGCI_LINT_VERSION: v1.55.2
permissions:
contents: read
jobs:
lint:
permissions:
contents: read # for actions/checkout to fetch code
pull-requests: read # for golangci/golangci-lint-action to fetch pull requests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
- run: scripts/github-actions-packages
- uses: golangci/golangci-lint-action@v4
with:
version: ${{ env.GOLANGCI_LINT_VERSION }}
lint-markdown:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Lint the markdown
uses: DavidAnson/markdownlint-cli2-action@v15
with:
globs: |
**/*.md
!README.md
!vendor
!docs
!.github
shellcheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: lumaxis/shellcheck-problem-matchers@v2
- run: make shellcheck
shfmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
- run: make shfmt
space-at-eol:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: rm -fr vendor
- run: if git -P grep -I -n -r '[[:blank:]]$'; then echo "^^^ extra whitespace at EOL, please fix"; exit 1; fi
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
- run: scripts/github-actions-packages
- run: make docs-validation
vendor:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
- run: make check-vendor
log-capitalization:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
- run: make check-log-lines
verify-config-template:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
- run: make check-config-template
dependencies:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
- run: make verify-dependencies
typos:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: crate-ci/[email protected]
with:
config: .typos.toml