diff --git a/.github/workflows/go.yaml b/.github/workflows/go.yaml index ab30481..b78591e 100644 --- a/.github/workflows/go.yaml +++ b/.github/workflows/go.yaml @@ -33,11 +33,3 @@ jobs: with: go-version: "~1.17" - run: go build ./cmd/changeloguru - lint: - name: Lint - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: golangci/golangci-lint-action@v2 - with: - version: latest diff --git a/.github/workflows/golangci-lint.yaml b/.github/workflows/golangci-lint.yaml new file mode 100644 index 0000000..319edf1 --- /dev/null +++ b/.github/workflows/golangci-lint.yaml @@ -0,0 +1,19 @@ +name: Go + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + lint: + name: golangci-lint + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: golangci/golangci-lint-action@v2 + with: + version: latest