Skip to content

Commit 06eaf60

Browse files
committed
sonarqube shared path
1 parent f7a2d75 commit 06eaf60

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/sonarcloud.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77
pull_request:
88
types: [labeled, opened, synchronize, reopened, unlabeled]
99

10+
env:
11+
SHARED_PATH: ${{ github.workspace }}/lambdas/shared/src:${{ github.workspace }}/lambdas/shared/tests
12+
LAMBDA_PATH: ${{ github.workspace }}/lambdas
13+
1014
jobs:
1115
sonarcloud:
1216
name: SonarCloud
@@ -128,7 +132,7 @@ jobs:
128132
working-directory: lambdas/shared
129133
id: shared
130134
env:
131-
PYTHONPATH: ${{ github.workspace }}/lambdas/shared/src:${{ github.workspace }}/lambdas/shared/tests
135+
PYTHONPATH: ${{ env.SHARED_PATH }}
132136
continue-on-error: true
133137
run: |
134138
poetry env use 3.11
@@ -140,7 +144,7 @@ jobs:
140144
working-directory: lambdas/id_sync
141145
id: id_sync
142146
env:
143-
PYTHONPATH: ${{ github.workspace }}/lambdas/id_sync/src:${{ github.workspace }}/lambdas/id_sync/tests:${{ github.workspace }}/lambdas/shared/src:${{ github.workspace }}/lambdas/shared/tests
147+
PYTHONPATH: ${{ env.LAMBDA_PATH }}/id_sync/src:${{ env.LAMBDA_PATH }}/id_sync/tests:${{ env.SHARED_PATH }}
144148
continue-on-error: true
145149
run: |
146150
poetry env use 3.11

0 commit comments

Comments
 (0)