Files
atlantis/.github/workflows/lint-required.yml
nitrocode 49bc17d3b9 feat(renovatebot): automerge enabled (#3123)
* feat(renovatebot): automerge enabled

* Update renovate.json5

* feat(workflows): add negative path filtering for required tests
2023-02-16 21:44:22 -08:00

45 lines
1.1 KiB
YAML

# For required checks when path filtering doesn;'t trigger the other job
# https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/defining-the-mergeability-of-pull-requests/troubleshooting-required-status-checks#handling-skipped-but-required-checks
name: linter
on:
pull_request:
types:
- opened
- reopened
- synchronize
- ready_for_review
branches:
- "main"
paths:
- 'runatlantis.io/**'
- '.github/**'
- '**/*.md'
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
golangci-lint:
if: github.event.pull_request.draft == false
name: runner / golangci-lint
runs-on: ubuntu-22.04
steps:
- run: 'echo "No build required"'
revive:
if: github.event.pull_request.draft == false
name: runner / revive
runs-on: ubuntu-22.04
steps:
- run: 'echo "No build required"'
errcheck:
if: github.event.pull_request.draft == false
name: runner / errcheck
runs-on: ubuntu-22.04
steps:
- run: 'echo "No build required"'