diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml index 968bc51..6e5e83e 100644 --- a/.github/workflows/actions.yml +++ b/.github/workflows/actions.yml @@ -1,9 +1,10 @@ -name: Workflow -on: +name: Common Workflows +on: # yamllint disable-line rule:truthy push: branches: [main] pull_request: - branches: [main] + branches: ["**"] + jobs: code-check: name: Check Go formatting, linting, vetting @@ -11,8 +12,8 @@ jobs: steps: - name: Checkout the code uses: actions/checkout@v4 - - name: Run the formatter, linter, and vetter - uses: dell/common-github-actions/go-code-formatter-linter-vetter@main + - name: Run the formatter and vetter + uses: dell/common-github-actions/go-code-formatter-vetter@main with: directories: --vet-in-dir podmon ./... sanitize: diff --git a/.github/workflows/go-version.yaml b/.github/workflows/go-version.yaml index 1ba387e..51df53b 100644 --- a/.github/workflows/go-version.yaml +++ b/.github/workflows/go-version.yaml @@ -9,7 +9,7 @@ # Reusable workflow to perform go version update on Golang based projects name: Go Version Update -on: +on: # yamllint disable-line rule:truthy workflow_dispatch: repository_dispatch: types: [go-update-workflow] diff --git a/.github/workflows/linters.yaml b/.github/workflows/linters.yaml index f43390a..a89f1f2 100644 --- a/.github/workflows/linters.yaml +++ b/.github/workflows/linters.yaml @@ -1,6 +1,6 @@ name: linters -on: +on: # yamllint disable-line rule:truthy push: branches: [main] pull_request: diff --git a/.golangci.yaml b/.golangci.yaml index bf5d979..56f5332 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -27,4 +27,4 @@ linters: # Check for correctness of programs. - govet # Drop-in replacement of golint. - - revive \ No newline at end of file + - revive