-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: ability to manually run Swift integration tests (#379)
* chore: ability to manually run Swift integration tests * fix: names
- Loading branch information
1 parent
ef2d411
commit b43179b
Showing
6 changed files
with
217 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,18 +42,36 @@ jobs: | |
ofac-blocked-zones: ${{ vars.OFAC_BLOCKED_ZONES }} | ||
aws-role-arn: ${{ vars.AWS_ROLE_STAGING }} | ||
|
||
validate-staging: | ||
name: Validate Staging | ||
validate-staging-health: | ||
name: Validate Staging Health | ||
needs: [ cd-staging ] | ||
uses: ./.github/workflows/sub-validate.yml | ||
uses: ./.github/workflows/sub-validate-health.yml | ||
secrets: inherit | ||
with: | ||
stage: staging | ||
stage-url: https://staging.${{ vars.SUBDOMAIN_NAME }}.walletconnect.com/health | ||
|
||
validate-staging-rust: | ||
name: Validate Staging Rust | ||
needs: [ cd-staging ] | ||
uses: ./.github/workflows/sub-validate-rust.yml | ||
secrets: inherit | ||
with: | ||
stage: staging | ||
stage-url: https://staging.${{ vars.SUBDOMAIN_NAME }}.walletconnect.com/health | ||
|
||
# validate-staging-swift: | ||
# name: Validate Staging Swift | ||
# needs: [ cd-staging ] | ||
# uses: ./.github/workflows/sub-validate-swift.yml | ||
# secrets: inherit | ||
# with: | ||
# stage: staging | ||
# stage-url: https://staging.${{ vars.SUBDOMAIN_NAME }}.walletconnect.com/health | ||
|
||
cd-prod: | ||
name: Prod | ||
needs: [ validate-staging ] | ||
needs: [ validate-staging-health, validate-staging-rust ] | ||
if: ${{ inputs.deploy-prod }} | ||
secrets: inherit | ||
uses: WalletConnect/ci_workflows/.github/workflows/[email protected] | ||
|
@@ -67,11 +85,29 @@ jobs: | |
ofac-blocked-zones: ${{ vars.OFAC_BLOCKED_ZONES }} | ||
aws-role-arn: ${{ vars.AWS_ROLE_PROD }} | ||
|
||
validate-prod: | ||
name: Validate Prod | ||
validate-prod-health: | ||
name: Validate Prod Health | ||
needs: [ cd-prod ] | ||
uses: ./.github/workflows/sub-validate.yml | ||
uses: ./.github/workflows/sub-validate-health.yml | ||
secrets: inherit | ||
with: | ||
stage: prod | ||
stage-url: https://${{ vars.SUBDOMAIN_NAME }}.walletconnect.com/health | ||
|
||
validate-prod-rust: | ||
name: Validate Prod Rust | ||
needs: [ cd-prod ] | ||
uses: ./.github/workflows/sub-validate-rust.yml | ||
secrets: inherit | ||
with: | ||
stage: prod | ||
stage-url: https://${{ vars.SUBDOMAIN_NAME }}.walletconnect.com/health | ||
|
||
# validate-prod-swift: | ||
# name: Validate Prod Swift | ||
# needs: [ cd-prod ] | ||
# uses: ./.github/workflows/sub-validate-swift.yml | ||
# secrets: inherit | ||
# with: | ||
# stage: prod | ||
# stage-url: https://${{ vars.SUBDOMAIN_NAME }}.walletconnect.com/health |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: ❖ Validate Rust | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
stage: | ||
description: 'the environment to validate' | ||
required: true | ||
type: string | ||
stage-url: | ||
description: 'the URL of the environment' | ||
required: true | ||
type: string | ||
|
||
permissions: | ||
contents: read | ||
checks: write | ||
id-token: write | ||
|
||
jobs: | ||
health-check: | ||
name: Health Check - ${{ inputs.stage }} | ||
runs-on: | ||
group: ${{ vars.RUN_GROUP }} | ||
environment: | ||
name: ${{ inputs.stage }} | ||
url: ${{ inputs.stage-url }} | ||
steps: | ||
- name: health-check | ||
run: curl "${{ inputs.stage-url }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: ❖ Validate Rust | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
stage: | ||
description: 'the environment to validate' | ||
required: true | ||
type: string | ||
stage-url: | ||
description: 'the URL of the environment' | ||
required: true | ||
type: string | ||
|
||
permissions: | ||
contents: read | ||
checks: write | ||
id-token: write | ||
|
||
jobs: | ||
validate-rust: | ||
name: Rust Deployment Tests - ${{ inputs.stage }} | ||
runs-on: | ||
group: ${{ vars.RUN_GROUP }} | ||
environment: | ||
name: ${{ inputs.stage }} | ||
url: ${{ inputs.stage-url }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Convert test environment | ||
id: get_test_env | ||
env: | ||
TEST_ENV: ${{ inputs.stage }} | ||
run: | | ||
echo "test_env=${TEST_ENV^^}" >> $GITHUB_OUTPUT | ||
- name: Run deployment tests | ||
run: cargo test --test deployment | ||
env: | ||
RUST_BACKTRACE: true | ||
ENVIRONMENT: ${{ steps.get_test_env.outputs.test_env }} | ||
PROJECT_ID: ${{ secrets.PROJECT_ID }} | ||
NOTIFY_PROJECT_ID: ${{ secrets.VALIDATION_NOTIFY_PROJECT_ID }} | ||
NOTIFY_PROJECT_SECRET: ${{ secrets.VALIDATION_NOTIFY_PROJECT_SECRET }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: ❖ Validate | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
stage: | ||
description: 'the environment to validate' | ||
required: true | ||
type: string | ||
stage-url: | ||
description: 'the URL of the environment' | ||
required: true | ||
type: string | ||
|
||
permissions: | ||
contents: read | ||
checks: write | ||
id-token: write | ||
|
||
jobs: | ||
validate-swift: | ||
name: Swift Integration Tests - ${{ inputs.stage }} | ||
runs-on: | ||
group: apple-silicon | ||
permissions: | ||
contents: write | ||
environment: | ||
name: ${{ inputs.stage }} | ||
url: ${{ inputs.stage-url }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
repository: WalletConnect/WalletConnectSwiftV2 | ||
|
||
- name: Run Notify Tests | ||
uses: ./.github/actions/run_tests_without_building | ||
with: | ||
type: 'notify-tests' | ||
notify-endpoint: ${{ vars.VALIDATION_NOTIFY_ENDPOINT }} | ||
relay-endpoint: ${{ vars.VALIDATION_RELAY_ENDPOINT }} | ||
explorer-endpoint: ${{ vars.VALIDATION_EXPLORER_ENDPOINT }} | ||
project-id: ${{ secrets.VALIDATION_SWIFT_PROJECT_ID }} | ||
gm-dapp-host: ${{ vars.VALIDATION_DAPP_DOMAIN }} | ||
gm-dapp-project-id: ${{ secrets.VALIDATION_SWIFT_DAPP_PROJECT_ID }} | ||
gm-dapp-project-secret: ${{ secrets.VALIDATION_SWIFT_DAPP_PROJECT_SECRET }} |
This file was deleted.
Oops, something went wrong.