Skip to content

Commit f8fa6ae

Browse files
committed
Enhance CI workflows by refining change detection logic and re-enabling quality checks for PR deployments
1 parent 65d9b3e commit f8fa6ae

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

.github/workflows/continuous-deployment.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ jobs:
2828
- name: Detect recordprocessor changes compared to master
2929
id: detect
3030
run: |
31-
if git diff --name-only "${{ github.event.before }}" "${{ github.sha }}" | grep -q '^lambdas/recordprocessor/'; then
32-
echo "has_changes=true" >> "$GITHUB_OUTPUT"
33-
else
31+
if git diff --quiet "${{ github.event.before }}" "${{ github.sha }}" -- lambdas/recordprocessor/ lambdas/shared/src/common/; then
3432
echo "has_changes=false" >> "$GITHUB_OUTPUT"
33+
else
34+
echo "has_changes=true" >> "$GITHUB_OUTPUT"
3535
fi
3636
3737
deploy-internal-dev-backend:

.github/workflows/pr-deploy-and-test.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ concurrency:
99
cancel-in-progress: true
1010

1111
jobs:
12-
# run-quality-checks:
13-
# uses: ./.github/workflows/quality-checks.yml
14-
# secrets:
15-
# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
12+
run-quality-checks:
13+
uses: ./.github/workflows/quality-checks.yml
14+
secrets:
15+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
1616

1717
detect-recordprocessor-changes:
1818
runs-on: ubuntu-latest
@@ -35,7 +35,7 @@ jobs:
3535
fi
3636
3737
deploy-pr-backend:
38-
needs: [detect-recordprocessor-changes]
38+
needs: [run-quality-checks, detect-recordprocessor-changes]
3939
if: ${{ always() && !failure() && !cancelled() }}
4040
uses: ./.github/workflows/deploy-backend.yml
4141
with:

0 commit comments

Comments
 (0)