Skip to content

Commit 41536ba

Browse files
authored
Merge pull request #125 from kajinamit/gh-workflow
Remove duplicate jobs from github workflow
2 parents b4290b2 + de902c2 commit 41536ba

2 files changed

Lines changed: 14 additions & 42 deletions

File tree

.github/workflows/golangci-lint.yaml

Lines changed: 0 additions & 42 deletions
This file was deleted.

.github/workflows/lints.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Lints
2+
3+
on: [pull_request]
4+
5+
jobs:
6+
check-go-mod-replace-lines:
7+
name: check for replace lines in go.mod files
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout project code
11+
uses: actions/checkout@v3
12+
- name: check for replace lines in go.mod files
13+
run: |
14+
! egrep --invert-match -e '^replace.*/api => \./api|^replace.*//allow-merging$' `find . -name 'go.mod'` | egrep -e 'go.mod:replace'

0 commit comments

Comments
 (0)