Skip to content

Commit

Permalink
Remove duplicate jobs from github workflow
Browse files Browse the repository at this point in the history
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
kajinamit committed Jul 27, 2023
1 parent 98fede6 commit 63b3c64
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 53 deletions.
53 changes: 0 additions & 53 deletions .github/workflows/golangci-lint.yaml

This file was deleted.

14 changes: 14 additions & 0 deletions .github/workflows/lints.yaml
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'

0 comments on commit 63b3c64

Please sign in to comment.