Skip to content

Bump the go-dependencies group with 14 updates (#473) #1397

Bump the go-dependencies group with 14 updates (#473)

Bump the go-dependencies group with 14 updates (#473) #1397

Workflow file for this run

---
name: Static analysis
on: # yamllint disable-line rule:truthy
push:
branches:
- main
tags:
- v*
workflow_run:
workflows: ["Release"]
types: [completed]
branches: [main]
pull_request:
permissions: read-all
jobs:
go-and-crds:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' || github.event_name != 'workflow_run' }}
steps:
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v5.0.0
- uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6.1.0
with:
go-version-file: "go.mod"
- name: golangci-lint
uses: golangci/golangci-lint-action@e7fa5ac41e1cf5b7d48e45e42232ce7ada589601 # v9.1.0
with:
version: v2.4.0
args: --config tools/.golangci.yaml
- run: |
set -euo pipefail
make vet
- run: |
set -euo pipefail
make lint
- run: |
set -euo pipefail
make fmt
DIFF=$(git status --porcelain)
if [ -n "$DIFF" ]; then
echo "These files were modified:"
echo
echo "$DIFF"
echo
exit 1
fi
- run: |
set -euo pipefail
DIFF=$(git status --porcelain)
make generate manifests
if [ -n "$DIFF" ]; then
echo "These files were modified:"
echo
echo "$DIFF"
echo
echo "Please run make generate manifests and commit the changes."
exit 1
fi
codespell:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v5.0.0
- name: Run codespell
uses: codespell-project/actions-codespell@v2
with:
skip: "*.svg"
yamllint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v5.0.0
- name: "Yamllint"
uses: karancode/yamllint-github-action@master