Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Commit

Permalink
simplify cosmos check
Browse files Browse the repository at this point in the history
  • Loading branch information
paullatzelsperger committed Mar 12, 2023
1 parent ed6ac4a commit 00e0adc
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions .github/workflows/verify.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -103,21 +103,8 @@ jobs:
with:
command: ./gradlew test -DincludeTags="PostgresqlIntegrationTest"

Check-Cosmos-Key:
runs-on: ubuntu-latest
steps:
- id: has-cosmos-key
env:
HAS_COSMOS_KEY: ${{ secrets.COSMOS_KEY }}
if: "${{ env.HAS_COSMOS_KEY != '' }}"
run: echo "::set-output name=defined::true"
outputs:
has-cosmos-key: ${{ steps.has-cosmos-key.outputs.defined }}

Azure-CosmosDB-Integration-Tests:
# run only if COSMOS_KEY is present
needs: [ Check-Cosmos-Key ]
if: needs.Check-Cosmos-Key.outputs.has-cosmos-key == 'true'
runs-on: ubuntu-latest

env:
Expand All @@ -126,9 +113,13 @@ jobs:

steps:
- uses: actions/checkout@v3
if: ${{ env.COSMOS_KEY != '' }}

- uses: ./.github/actions/gradle-setup
if: ${{ env.COSMOS_KEY != '' }}

- name: Azure CosmosDB Tests
if: ${{ env.COSMOS_KEY != '' }}
uses: ./.github/actions/run-tests
with:
command: ./gradlew test -DincludeTags="AzureCosmosDbIntegrationTest"
Expand Down

0 comments on commit 00e0adc

Please sign in to comment.