Skip to content

Commit 50ee2fc

Browse files
Merge pull request microsoft#110 from Ayaz-Microsoft/cicd-optimization-dev
ci: Update CI workflows to include path filters for pull requests an…
2 parents 80ed586 + a305970 commit 50ee2fc

5 files changed

Lines changed: 30 additions & 3 deletions

File tree

.github/workflows/azure-dev.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Azure Template Validation
22
on:
3-
workflow_dispatch:
3+
workflow_dispatch:
44

55
permissions:
66
contents: read

.github/workflows/codeql.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,17 @@ name: "CodeQL"
1414
on:
1515
push:
1616
branches: [ "main" ]
17+
paths:
18+
- 'src/**'
19+
- 'infra/scripts/**'
20+
- '.github/workflows/codeql.yml'
1721
pull_request:
1822
# The branches below must be a subset of the branches above
1923
branches: [ "main" ]
24+
paths:
25+
- 'src/**'
26+
- 'infra/scripts/**'
27+
- '.github/workflows/codeql.yml'
2028
schedule:
2129
- cron: '17 11 * * 0'
2230

.github/workflows/deploy.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ on:
44
pull_request:
55
branches:
66
- main
7+
paths:
8+
- 'src/**'
9+
- 'infra/**'
10+
- 'azure.yaml'
11+
- '.github/workflows/deploy.yml'
712
workflow_run:
813
workflows: ["Build Docker and Optional Push - Agentic Applications for Unified Data Foundation"]
914
types:

.github/workflows/docker-build.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66
- main
77
- dev
88
- demo
9+
paths:
10+
- 'src/App/**'
11+
- 'src/api/**'
12+
- '.github/workflows/docker-build.yml'
913
pull_request:
1014
types:
1115
- opened
@@ -16,6 +20,10 @@ on:
1620
- main
1721
- dev
1822
- demo
23+
paths:
24+
- 'src/App/**'
25+
- 'src/api/**'
26+
- '.github/workflows/docker-build.yml'
1927
workflow_dispatch:
2028

2129
jobs:
@@ -59,7 +67,7 @@ jobs:
5967
else
6068
echo "tagname=default" >> $GITHUB_OUTPUT
6169
62-
fi
70+
fi
6371
- name: Build and Push Docker Image for WebApp
6472
uses: docker/build-push-action@v6
6573
with:

.github/workflows/pylint.yml

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

3-
on: [push]
3+
on:
4+
push:
5+
paths:
6+
- 'src/api/python/**'
7+
- 'infra/scripts/**/*.py'
8+
- '.github/workflows/pylint.yml'
9+
- '.flake8'
410

511
jobs:
612
build:

0 commit comments

Comments
 (0)