Skip to content

UPSTREAM: <carry>: Rename konflux.Containerfile.download to konflux.Dockerfile #273

UPSTREAM: <carry>: Rename konflux.Containerfile.download to konflux.Dockerfile

UPSTREAM: <carry>: Rename konflux.Containerfile.download to konflux.Dockerfile #273

Workflow file for this run

name: Lint
on:
pull_request:
branches: [ oadp-dev ]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: '1.25'
- name: golangci-lint
uses: golangci/golangci-lint-action@v9
with:
version: v2.10
args: --timeout=5m
- name: Run go fmt
run: |
if [ "$(gofmt -s -l . | wc -l)" -gt 0 ]; then
echo "The following files are not formatted:"
gofmt -s -l .
echo "Please run 'go fmt ./...' to format your code"
exit 1
fi
- name: Run go vet
run: go vet ./...
- name: Run go mod tidy check
run: |
go mod tidy
if [ -n "$(git status --porcelain go.mod go.sum)" ]; then
echo "go.mod or go.sum is not tidy"
git diff go.mod go.sum
exit 1
fi
- name: Check for unused dependencies
run: |
go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
golangci-lint run --enable unused