Skip to content

Merge pull request #326 from hbelmiro/fix-operator-image #60

Merge pull request #326 from hbelmiro/fix-operator-image

Merge pull request #326 from hbelmiro/fix-operator-image #60

Workflow file for this run

name: pre-commit
#on:
# push:
# branches:
# - master
# pull_request:
# branches:
# - master
# This workflow is disabled in downstream because we require linting upstream.
on: []
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Fetch base branch
run: git fetch origin ${{ github.base_ref || github.ref_name }}
- uses: actions/setup-python@v6
- uses: actions/setup-go@v6
with:
go-version-file: go.mod
- name: golangci-lint
uses: golangci/golangci-lint-action@v9
with:
version: v2.10
args: --new --new-from-merge-base=origin/${{ github.base_ref || github.ref_name }}
#- uses: pre-commit/action@v3.0.1
# # This is set to only run the golangci-lint pre-commit hooks
# # Remove in a later PR to run all hooks
# with:
# go-version: '>=1.24.2'
# extra_args: golangci-lint --all-files