|
29 | 29 | - name: Run Checkstyle |
30 | 30 | run: ./gradlew checkstyleMain checkstyleTest checkstyleTestFixtures |
31 | 31 |
|
32 | | - Check-Actions-Secrets: |
33 | | - runs-on: ubuntu-latest |
34 | | - outputs: |
35 | | - has-pg-connectionstring: ${{ steps.has-pg-connectionstring.outputs.has-pg-connectionstring }} |
36 | | - steps: |
37 | | - - name: Check if PG_CONNECTION_STRING secret exists |
38 | | - id: has-pg-connectionstring |
39 | | - run: | |
40 | | - [ ! -z "${{ secrets.PG_CONNECTION_STRING }}" ] && |
41 | | - echo "has-pg-connectionstring=true" >> $GITHUB_OUTPUT |
42 | | - exit 0 |
43 | | -
|
44 | | -
|
45 | 32 | Unit-Tests: |
46 | 33 | runs-on: ubuntu-latest |
47 | 34 | env: |
|
76 | 63 | command: | |
77 | 64 | ./gradlew test -DincludeTags="AzureStorageIntegrationTest" --refresh-dependencies |
78 | 65 |
|
79 | | - Azure-CosmosDB-Integration-Tests: |
80 | | - # run only if PG_CONNECTION_STRING is present |
81 | | - needs: [ Check-Actions-Secrets ] |
82 | | - if: needs.Check-Actions-Secrets.outputs.has-pg-connectionstring == 'true' |
83 | | - runs-on: ubuntu-latest |
84 | | - |
85 | | - env: |
86 | | - PG_CONNECTION_STRING: ${{ secrets.PG_CONNECTION_STRING }} |
87 | | - |
88 | | - steps: |
89 | | - - uses: actions/checkout@v3 |
90 | | - - uses: ./.github/actions/setup-build |
91 | | - |
92 | | - - name: Cosmos PostgreSQL Tests (parallelizable) |
93 | | - run: | |
94 | | - ./gradlew test -DincludeTags="ParallelPostgresCosmosTest" |
95 | | -
|
96 | | - - name: Cosmos PostgreSQL Tests (not parallelizable) |
97 | | - run: | |
98 | | - ./gradlew test -DincludeTags="PostgresCosmosTest" --no-parallel |
99 | | -
|
100 | 66 | # TODO: this test has been commented out because it was flaky. Further investigation needed. ref: https://github.com/eclipse-edc/Connector/issues/2403 |
101 | 67 | # Azure-Cloud-Integration-Test: |
102 | 68 | # needs: [ Check-Cloud-Environments ] |
@@ -178,7 +144,6 @@ jobs: |
178 | 144 | needs: |
179 | 145 | - Unit-Tests |
180 | 146 | - Azure-Storage-Integration-Tests |
181 | | - - Azure-CosmosDB-Integration-Tests |
182 | 147 | - End-To-End-Tests |
183 | 148 | - Component-Tests |
184 | 149 |
|
|
0 commit comments