Skip to content
This repository has been archived by the owner on Nov 14, 2023. It is now read-only.

Commit

Permalink
fix: recursion limit actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Rakowskiii committed Jul 26, 2023
1 parent e783950 commit 71407c7
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 11 deletions.
23 changes: 20 additions & 3 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,20 +64,28 @@ jobs:
relay_url: "wss://staging.relay.walletconnect.com"
cast_url: "https://staging.cast.walletconnect.com"

validate-staging:
validate-staging-rust:
needs: deploy-infra-staging
secrets: inherit
uses: ./.github/workflows/validate.yml
with:
environment: "STAGING"

validate-staging-swift:
uses: ./.github/workflows/validate_swift.yml
with:
notify-endpoint: 'staging.cast.walletconnect.com'
relay-endpoint: 'staging.relay.walletconnect.com'


##############################################################################
# Prod

deploy-infra-prod:
needs:
- get-version
- validate-staging
- validate-staging-rust
- validate-staging-swift
uses: ./.github/workflows/deploy-infra.yml
secrets: inherit
with:
Expand All @@ -87,9 +95,18 @@ jobs:
relay_url: "wss://relay.walletconnect.com"
cast_url: "https://cast.walletconnect.com"

validate-prod:
validate-prod-rust:
needs: [deploy-infra-prod]
uses: ./.github/workflows/validate.yml
secrets: inherit
with:
environment: "PROD"


validate-swift-prod:
needs: [deploy-infra-prod]
uses: ./.github/workflows/validate_swift.yml
with:
notify-endpoint: 'cast.walletconnect.com'
relay-endpoint: 'relay.walletconnect.com'

9 changes: 1 addition & 8 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,4 @@ jobs:
run: cargo test --test integration
env:
ENVIRONMENT: ${{ inputs.environment }}
TEST_PROJECT_ID: ${{ secrets.TEST_PROJECT_ID }}


validate-swift:
uses: ./.github/workflows/validate_swift.yml
with:
notify-endpoint: ${{ inputs.environment == 'PROD' && 'cast.walletconnect.com' || 'staging.cast.walletconnect.com' }}
relay-endpoint: ${{ inputs.environment == 'PROD' && 'relay.walletconnect.com' || 'staging.relay.walletconnect.com' }}
TEST_PROJECT_ID: ${{ secrets.TEST_PROJECT_ID }}

0 comments on commit 71407c7

Please sign in to comment.