diff --git a/.github/workflows/golang.yml b/.github/workflows/golang.yml index 1d33fa7..dd46764 100644 --- a/.github/workflows/golang.yml +++ b/.github/workflows/golang.yml @@ -3,7 +3,9 @@ name: golang on: push: branches: [main] + paths: &go_files ["*.go", "go.mod", "go.sum"] pull_request: + paths: *go_files jobs: release: @@ -25,3 +27,13 @@ jobs: - name: e2e tests run: go test -v ./e2e/ + + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Golangci Lint + uses: golangci/golangci-lint-action@v6 + with: + version: latest + args: ./... diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml deleted file mode 100644 index 8f6925c..0000000 --- a/.github/workflows/linter.yml +++ /dev/null @@ -1,17 +0,0 @@ -name: linter - -on: - push: - pull_request: - -jobs: - golang: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - - name: Golangci Lint - uses: golangci/golangci-lint-action@v6 - with: - version: latest - args: ./...