Skip to content

Commit

Permalink
Github action to avoid merging go.mod replace lines
Browse files Browse the repository at this point in the history
  • Loading branch information
gibizer committed Jan 6, 2023
1 parent 235dfda commit 762f273
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/golangci-lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,13 @@ jobs:
uses: actions/checkout@v2
- name: Run operator-lint
run: make operator-lint

check-go-mod-replace-lines:
name: check for replace lines in go.mod files
runs-on: ubuntu-latest
steps:
- name: Checkout project code
uses: actions/checkout@v2
- name: check for replace lines in go.mod files
run: |
! egrep --invert-match -e '^replace.*/api => \./api|^replace.*//allow-merging$' `find . -name 'go.mod'` | egrep -e 'go.mod:replace'

0 comments on commit 762f273

Please sign in to comment.