name: Pull Request Linter Check on: pull_request: # Do not run when the change only includes these directories. paths-ignore: - "site/**" - "design/**" - "**/*.md" permissions: contents: read jobs: get-go-version: uses: ./.github/workflows/get-go-version.yaml with: ref: ${{ github.event.pull_request.base.ref }} build: name: Run Linter Check runs-on: ubuntu-latest needs: get-go-version steps: - name: Check out the code uses: actions/checkout@v7 - name: Set up Go version uses: actions/setup-go@v7 with: go-version: ${{ needs.get-go-version.outputs.version }} - name: Linter check uses: golangci/golangci-lint-action@v9 with: version: v2.12.0 args: --verbose