forked from WalletConnect/WalletConnectSwiftV2
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into verify-api
# Conflicts: # Sources/WalletConnectNetworking/NetworkingInteractor.swift
- Loading branch information
Showing
94 changed files
with
2,843 additions
and
319 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: 'build' | ||
description: 'Compiles and stores artifacts for further use' | ||
inputs: | ||
relay-endpoint: | ||
description: 'The endpoint of the relay e.g. relay.walletconnect.com' | ||
required: false | ||
default: 'relay.walletconnect.com' | ||
project-id: | ||
description: 'WalletConnect project id' | ||
required: true | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: actions/cache@v3 | ||
with: | ||
path: | | ||
**/SourcePackagesCache | ||
DerivedDataCache | ||
key: ${{ runner.os }}-spm-${{ hashFiles('**/Package.resolved') }} | ||
restore-keys: | | ||
${{ runner.os }}-spm- | ||
- name: Build for testing | ||
shell: bash | ||
run: make build_all RELAY_HOST=${{ inputs.relay-endpoint }} PROJECT_ID=${{ inputs.project-id }} | ||
|
||
- name: Tar DerivedDataCache | ||
shell: bash | ||
run: test -d "DerivedDataCache" && tar cfPp products.tar --format posix DerivedDataCache/Build | ||
|
||
- uses: actions/cache/save@v3 | ||
with: | ||
path: | | ||
products.tar | ||
key: ${{ runner.os }}-deriveddata-${{ github.ref }}-${{ github.sha }} |
This file was deleted.
Oops, something went wrong.
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,73 @@ | ||
name: 'run_tests_without_building' | ||
description: 'Executes specific Swift tests using prebuilt artifacts from build_artifacts.yml workflow from main branch' | ||
inputs: | ||
type: | ||
description: 'The type of CI step to run' | ||
required: true | ||
relay-endpoint: | ||
description: 'The endpoint of the relay e.g. relay.walletconnect.com' | ||
required: false | ||
default: 'relay.walletconnect.com' | ||
project-id: | ||
description: 'WalletConnect project id' | ||
required: true | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Download artifact | ||
id: download-artifact | ||
uses: dawidd6/action-download-artifact@v2 | ||
with: | ||
name: main-derivedData | ||
workflow: build_artifacts.yml | ||
repo: 'WalletConnect/WalletConnectSwiftV2' | ||
if_no_artifact_found: warn | ||
|
||
- name: Untar DerivedDataCache | ||
shell: bash | ||
run: test -f products.tar && tar xPpf products.tar || echo "No artifacts to untar" | ||
|
||
# Package Unit tests | ||
- name: Run tests | ||
if: inputs.type == 'unit-tests' | ||
shell: bash | ||
run: make unit_tests | ||
|
||
# Integration tests | ||
- name: Run integration tests | ||
if: inputs.type == 'integration-tests' | ||
shell: bash | ||
run: make integration_tests RELAY_HOST=${{ inputs.relay-endpoint }} PROJECT_ID=${{ inputs.project-id }} | ||
|
||
# Relay Integration tests | ||
- name: Run Relay integration tests | ||
if: inputs.type == 'relay-tests' | ||
shell: bash | ||
run: make relay_tests RELAY_HOST=${{ inputs.relay-endpoint }} PROJECT_ID=${{ inputs.project-id }} | ||
|
||
# Smoke tests | ||
- name: Run smoke tests | ||
if: inputs.type == 'smoke-tests' | ||
shell: bash | ||
run: make smoke_tests RELAY_HOST=${{ inputs.relay-endpoint }} PROJECT_ID=${{ inputs.project-id }} | ||
|
||
- name: Publish Test Report | ||
uses: mikepenz/action-junit-report@v3 | ||
if: success() || failure() | ||
with: | ||
check_name: ${{ inputs.type }} junit report | ||
report_paths: 'test_results/report.junit' | ||
|
||
- name: Zip test artifacts | ||
if: always() | ||
shell: bash | ||
run: test -d "test_results" && zip artifacts.zip -r ./test_results || echo "Nothing to zip" | ||
|
||
- name: Upload test artifacts | ||
if: always() | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: ${{ inputs.type }} test_results | ||
path: ./artifacts.zip | ||
if-no-files-found: warn |
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,50 @@ | ||
name: build_artifacts | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
relay-endpoint: | ||
description: 'The endpoint of the relay e.g. relay.walletconnect.com' | ||
required: false | ||
default: 'relay.walletconnect.com' | ||
project-id: | ||
description: 'WalletConnect project id' | ||
required: true | ||
push: | ||
branches: [ main ] | ||
|
||
jobs: | ||
build: | ||
runs-on: macos-12 | ||
timeout-minutes: 15 | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: actions/cache@v3 | ||
with: | ||
path: | | ||
**/SourcePackagesCache | ||
DerivedDataCache | ||
key: ${{ runner.os }}-spm-${{ hashFiles('**/Package.resolved') }} | ||
restore-keys: | | ||
${{ runner.os }}-spm- | ||
- name: Build for testing on workflow_dispatch | ||
if: ${{ github.event_name == 'workflow_dispatch' }} | ||
shell: bash | ||
run: make build_all RELAY_HOST=${{ inputs.relay-endpoint }} PROJECT_ID=${{ inputs.project-id }} | ||
|
||
- name: Build for testing on push | ||
if: ${{ github.event_name == 'push' }} | ||
shell: bash | ||
run: make build_all RELAY_HOST=relay.walletconnect.com PROJECT_ID=${{ secrets.PROJECT_ID }} | ||
|
||
- name: Tar DerivedDataCache | ||
shell: bash | ||
run: test -d "DerivedDataCache" && tar cfPp products.tar --format posix DerivedDataCache/Build | ||
|
||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: main-derivedData | ||
path: products.tar |
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
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 |
---|---|---|
|
@@ -30,4 +30,5 @@ DerivedDataCache | |
|
||
# Artifacts | ||
*.ipa | ||
*.zip | ||
*.zip | ||
test_results/ |
Oops, something went wrong.