Skip to content

Commit 5f08238

Browse files
author
Harmanpreet Kaur
committed
feat: update GitHub Actions workflows with path-based triggers and comprehensive documentation
1 parent c33e5de commit 5f08238

File tree

6 files changed

+402
-2
lines changed

6 files changed

+402
-2
lines changed

.github/workflows/codeql.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,22 @@ name: "CodeQL Advanced"
1414
on:
1515
push:
1616
branches: [ "main", "dev", "demo" ]
17+
paths:
18+
- 'src/**/*.py'
19+
- 'src/**/*.js'
20+
- 'src/**/*.ts'
21+
- 'src/**/*.tsx'
22+
- 'tests/**/*.py'
23+
- '.github/workflows/codeql.yml'
1724
pull_request:
1825
branches: [ "main", "dev", "demo" ]
26+
paths:
27+
- 'src/**/*.py'
28+
- 'src/**/*.js'
29+
- 'src/**/*.ts'
30+
- 'src/**/*.tsx'
31+
- 'tests/**/*.py'
32+
- '.github/workflows/codeql.yml'
1933
schedule:
2034
- cron: '44 20 * * 2'
2135

.github/workflows/deploy.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,28 @@
11
name: Validate Deployment v3
22

33
on:
4+
push:
5+
branches:
6+
- main
7+
- dev-v3
8+
- hotfix
9+
paths:
10+
- 'infra/main.bicep'
11+
- 'infra/modules/**/*.bicep'
12+
- 'infra/*.parameters.json'
13+
- 'infra/scripts/**'
14+
- '.github/workflows/deploy.yml'
15+
pull_request:
16+
branches:
17+
- main
18+
- dev-v3
19+
- hotfix
20+
paths:
21+
- 'infra/main.bicep'
22+
- 'infra/modules/**/*.bicep'
23+
- 'infra/*.parameters.json'
24+
- 'infra/scripts/**'
25+
- '.github/workflows/deploy.yml'
426
workflow_run:
527
workflows: ["Build Docker and Optional Push v3"]
628
types:

.github/workflows/docker-build-and-push.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ on:
77
- dev-v3
88
- demo-v3
99
- hotfix
10+
paths:
11+
- 'src/frontend/**'
12+
- 'src/backend/**'
13+
- 'src/mcp_server/**'
14+
- '.github/workflows/docker-build-and-push.yml'
1015
pull_request:
1116
types:
1217
- opened
@@ -18,6 +23,11 @@ on:
1823
- dev-v3
1924
- demo-v3
2025
- hotfix
26+
paths:
27+
- 'src/frontend/**'
28+
- 'src/backend/**'
29+
- 'src/mcp_server/**'
30+
- '.github/workflows/docker-build-and-push.yml'
2131
workflow_dispatch:
2232

2333
jobs:

.github/workflows/pylint.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
11
name: PyLint
22

3-
on: [push]
3+
on:
4+
push:
5+
paths:
6+
- 'src/backend/**/*.py'
7+
- 'src/backend/requirements.txt'
8+
- '.flake8'
9+
- '.github/workflows/pylint.yml'
10+
pull_request:
11+
paths:
12+
- 'src/backend/**/*.py'
13+
- 'src/backend/requirements.txt'
14+
- '.flake8'
15+
- '.github/workflows/pylint.yml'
416

517
jobs:
618
build:

.github/workflows/test.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,35 @@ on:
77
- dev
88
- demo
99
- hotfix
10+
paths:
11+
- 'src/backend/**/*.py'
12+
- 'src/tests/**/*.py'
13+
- 'src/mcp_server/**/*.py'
14+
- 'pytest.ini'
15+
- 'conftest.py'
16+
- 'src/backend/requirements.txt'
17+
- 'pyproject.toml'
18+
- '.github/workflows/test.yml'
1019
pull_request:
1120
types:
1221
- opened
1322
- ready_for_review
1423
- reopened
1524
- synchronize
1625
branches:
17-
- main
1826
- main
1927
- dev
2028
- demo
2129
- hotfix
30+
paths:
31+
- 'src/backend/**/*.py'
32+
- 'src/tests/**/*.py'
33+
- 'src/mcp_server/**/*.py'
34+
- 'pytest.ini'
35+
- 'conftest.py'
36+
- 'src/backend/requirements.txt'
37+
- 'pyproject.toml'
38+
- '.github/workflows/test.yml'
2239

2340
jobs:
2441
test:

0 commit comments

Comments
 (0)