Skip to content

Commit 809f417

Browse files
author
Andreas Beuge
committed
chore: add generic pipeline checks
1 parent 54ab61e commit 809f417

1 file changed

Lines changed: 70 additions & 0 deletions

File tree

.github/workflows/ci.checks.yaml

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
name: Pipeline Requirement Checks
2+
on:
3+
push:
4+
branches:
5+
- "**"
6+
workflow_dispatch:
7+
jobs:
8+
ci_checks:
9+
runs-on: ubuntu-latest
10+
outputs:
11+
full_run_required: ${{ github.event_name == 'workflow_dispatch' && 'true' || steps.check_full_run_required.outputs.full_run_required }}
12+
test_run_required: ${{ github.event_name == 'workflow_dispatch' && 'true' || steps.check_test_run_required.outputs.test_run_required }}
13+
steps:
14+
- uses: actions/checkout@v6
15+
if: ${{ github.event_name != 'workflow_dispatch' }}
16+
with:
17+
fetch-depth: 0
18+
19+
- name: Check full pipeline run required
20+
id: check_full_run_required
21+
if: ${{ github.event_name != 'workflow_dispatch' }}
22+
uses: dorny/paths-filter@v4
23+
with:
24+
predicate-quantifier: "every"
25+
filters: |
26+
full_run_required:
27+
- "**"
28+
- "!.chart/**"
29+
- "!.github/**"
30+
31+
- name: Check tests run required
32+
id: check_test_run_required
33+
if: ${{ github.event_name != 'workflow_dispatch' }}
34+
uses: dorny/paths-filter@v4
35+
with:
36+
predicate-quantifier: "some"
37+
filters: |
38+
test_run_required:
39+
# Python / Django
40+
- "**.py"
41+
- "requirements*.txt"
42+
- "pyproject.toml"
43+
- "setup.cfg"
44+
- "Pipfile"
45+
- "Pipfile.lock"
46+
- "poetry.lock"
47+
- "uv.lock"
48+
- "tox.ini"
49+
- "pytest.ini"
50+
- "**.html"
51+
- "templates/**"
52+
# JavaScript / TypeScript
53+
- "**.js"
54+
- "**.jsx"
55+
- "**.ts"
56+
- "**.tsx"
57+
- "**.mjs"
58+
- "**.cjs"
59+
- "**.vue"
60+
- "**.svelte"
61+
- "package.json"
62+
- "package-lock.json"
63+
- "yarn.lock"
64+
- "pnpm-lock.yaml"
65+
- "tsconfig*.json"
66+
- "jest.config.*"
67+
- "vitest.config.*"
68+
- "babel.config.*"
69+
- "vite.config.*"
70+
- "webpack.config.*"

0 commit comments

Comments
 (0)