Skip to content

Commit

Permalink
Make restoring artifacts optional but warn
Browse files Browse the repository at this point in the history
  • Loading branch information
radeknovis committed May 2, 2023
1 parent 60f4462 commit bf58c89
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 14 deletions.
5 changes: 1 addition & 4 deletions .github/actions/build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,7 @@ runs:
- name: Build for testing
shell: bash
env:
RELAY_ENDPOINT: ${{ inputs.relay-endpoint }}
PROJECT_ID: ${{ inputs.project-id }}
run: make build_all RELAY_HOST=$RELAY_ENDPOINT PROJECT_ID=$PROJECT_ID
run: make build_all RELAY_HOST=${{ inputs.project-id }} PROJECT_ID=${{ inputs.project-id }}

- name: Tar DerivedDataCache
shell: bash
Expand Down
3 changes: 2 additions & 1 deletion .github/actions/run_tests_without_building/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,11 @@ runs:
name: main-derivedData
workflow: build_artifacts.yml
repo: 'WalletConnect/WalletConnectSwiftV2'
if_no_artifact_found: warn

- name: Untar DerivedDataCache
shell: bash
run: tar xPpf products.tar
run: test -f products.tar && tar xPpf products.tar || echo "No artifacts to untar"

# Package Unit tests
- name: Run tests
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/build_artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,7 @@ jobs:
- name: Build for testing
shell: bash
env:
RELAY_ENDPOINT: relay.walletconnect.com
PROJECT_ID: ${{ secrets.PROJECT_ID }}
run: make build_all
run: make build_all RELAY_HOST=${{ inputs.project-id }} PROJECT_ID=${{ inputs.project-id }}

- name: Tar DerivedDataCache
shell: bash
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
- name: Untar DerivedDataCache
shell: bash
run: tar xPpf products.tar
run: test -f products.tar && tar xPpf products.tar || echo "No artifacts to untar"

# Package Unit tests
- name: Run tests
Expand Down
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ build_wallet:
fastlane build scheme:WalletApp

echo_ui_tests:
fastlane tests scheme:EchoUITests relay_host:$(RELAY_HOST) project_id:$(PROJECT_ID)
echo "EchoUITests disabled"

ui_tests:
echo "UI Tests disabled"
Expand All @@ -42,9 +42,9 @@ unitxctestrun = $(shell find . -name '*WalletConnect-Package*.xctestrun')

unit_tests: test_setup
ifneq ($(unitxctestrun),)
set -o pipefail && env NSUnbufferedIO=YES xcodebuild -destination 'platform=iOS Simulator,name=iPhone 14' -derivedDataPath DerivedDataCache -resultBundlePath 'test_results/UnitTests.xcresult' -xctestrun '$(integrationxctestrun)' test-without-building | tee ./test_results/xcodebuild.log | xcpretty --report junit --output ./test_results/report.junit
set -o pipefail && env NSUnbufferedIO=YES xcodebuild -destination 'platform=iOS Simulator,name=iPhone 14' -derivedDataPath DerivedDataCache -resultBundlePath 'test_results/UnitTests.xcresult' -xctestrun '$(unitxctestrun)' test-without-building | tee ./test_results/xcodebuild.log | xcpretty --report junit --output ./test_results/report.junit
else
set -o pipefail && env NSUnbufferedIO=YES xcodebuild -scheme WalletConnect-Package -destination 'platform=iOS Simulator,name=iPhone 14' -derivedDataPath DerivedDataCache -resultBundlePath 'test_results/UnitTests.xcresult' RELAY_HOST='$(RELAY_HOST)' PROJECT_ID='$(PROJECT_ID)' test | tee ./test_results/xcodebuild.log | xcpretty --report junit --output ./test_results/report.junit
set -o pipefail && env NSUnbufferedIO=YES xcodebuild -scheme WalletConnect-Package -destination 'platform=iOS Simulator,name=iPhone 14' -derivedDataPath DerivedDataCache -resultBundlePath 'test_results/UnitTests.xcresult' test | tee ./test_results/xcodebuild.log | xcpretty --report junit --output ./test_results/report.junit
endif

integrationxctestrun = $(shell find . -name '*_IntegrationTests*.xctestrun')
Expand Down
1 change: 0 additions & 1 deletion Sources/WalletConnectVerify/AttestChallengeProvider.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ protocol AttestChallengeProviding {

class AttestChallengeProvider: AttestChallengeProviding {
func getChallenge() async throws -> Data {
return Data()
fatalError("not implemented")
}
}

0 comments on commit bf58c89

Please sign in to comment.