Skip to content

Merge pull request #7309 from mtrmac/ErrCannotParseImageID #25

Merge pull request #7309 from mtrmac/ErrCannotParseImageID

Merge pull request #7309 from mtrmac/ErrCannotParseImageID #25

Workflow file for this run

name: verify
on:
push:
tags:
- v*
branches:
- main
- release-*
pull_request:
env:
GO_VERSION: '1.21'
GOLANGCI_LINT_VERSION: v1.53.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@v4
with:
go-version: ${{ env.GO_VERSION }}
- run: scripts/github-actions-packages
- uses: golangci/golangci-lint-action@v3
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@v12
with:
globs: |
**/*.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@v4
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 '\s$'; 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@v4
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@v4
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@v4
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@v4
with:
go-version: ${{ env.GO_VERSION }}
- run: make check-config-template
get-script:
if: ${{ github.base_ref == 'main' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: sudo scripts/get
- run: crio version
get-script-with-verification:
if: ${{ github.base_ref == 'main' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}
- uses: sigstore/cosign-installer@v3
- run: |
make get-script
hack/tree_status.sh
- run: |
make bom
sudo cp build/bin/bom /usr/bin
- run: sudo -E PATH=$PATH scripts/get
- run: crio version
dependencies:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
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