-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove duplicate jobs from github workflow
We now run pre-commit job in prow which covers most of go-lang tasks. This also adds a github action that checks for go.mod replace, which was added to several operator repos.
- Loading branch information
Showing
2 changed files
with
14 additions
and
53 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
name: Lints | ||
|
||
on: [pull_request] | ||
|
||
jobs: | ||
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@v3 | ||
- 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' |