-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (37 loc) · 1.5 KB
/
linters.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: ✅ Linters
on:
pull_request:
types: [opened, synchronize, reopened]
jobs:
codeowners-validation:
if: ${{ github.actor != 'dependabot[bot]' }}
name: Codeowners File Validation
uses: Andrews-McMeel-Universal/reusable_workflows/.github/workflows/codeowners-validation.yaml@2
jira-lint:
if: ${{ github.actor != 'dependabot[bot]' && github.actor != 'amutechtest' && github.ref != 'refs/heads/development' && github.ref != 'refs/heads/main' }}
name: Jira PR Linter
uses: Andrews-McMeel-Universal/reusable_workflows/.github/workflows/jira-lint.yaml@2
with:
fail-on-error: ${{ vars.JIRA_LINT_FAIL_ON_ERROR || 'false' }}
skip-comments: ${{ vars.JIRA_LINT_SKIP_COMMENTS || 'true' }}
secrets:
JIRA_TOKEN: ${{ secrets.JIRA_TOKEN }}
lint:
if: ${{ github.actor != 'dependabot[bot]' }}
name: Simple Lint
uses: Andrews-McMeel-Universal/reusable_workflows/.github/workflows/simple-lint.yaml@2
with:
runPrettier: ${{ vars.SIMPLE_LINT_RUN_PRETTIER != 'false' }}
prettierPlugins: ${{ vars.INSTALL_PRETTIER_PLUGINS }}
secrets:
PAT_ACTION_CI: ${{ secrets.PAT_ACTION_CI }}
do-not-merge:
name: Disable merging on label
if: ${{ contains(github.event.pull_request.labels.*.name, 'do not merge') }}
runs-on: ubuntu-latest
steps:
- name: Check for label
run: |
echo "Pull request is labeled as 'do not merge'"
echo "This workflow fails so that the pull request cannot be merged"
exit 1