Skip to content

Commit

Permalink
Update swift.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
flypaper0 committed Jun 23, 2022
1 parent b13f278 commit 225901f
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 33 deletions.
22 changes: 9 additions & 13 deletions .github/workflows/swift.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,10 @@ on:

jobs:
build:
ios:
env:
BUILDCACHE_DIR: .build

runs-on: macos-latest

steps:
- uses: actions/checkout@v2
- uses: mikehardy/buildcache-action@v1

- name: Setup Xcode Version
uses: maxim-lobanov/setup-xcode@v1
Expand All @@ -27,46 +22,47 @@ jobs:
with:
path: |
.build
/Users/runner/Library/Developer/Xcode/DerivedData/**/SourcePackages/checkouts
SourcePackages
key: ${{ runner.os }}-spm-${{ hashFiles('**/Package.resolved') }}
restore-keys: |
${{ runner.os }}-spm-
# Package builds
- name: Build Package
run: swift build -v
- name: Run tests
run: swift test -v
run: "xcodebuild \
-project Example/ExampleApp.xcodeproj \
-scheme WalletConnect \
-clonedSourcePackagesDirPath SourcePackages \
-destination 'platform=iOS Simulator,name=iPhone 13' test"

# Integration tests
- name: Run integration tests
run: "xcodebuild \
-project Example/ExampleApp.xcodeproj \
-scheme IntegrationTests \
-derivedDataPath .build \
-clonedSourcePackagesDirPath SourcePackages \
-destination 'platform=iOS Simulator,name=iPhone 13' test"

# Wallet build
- name: Build Example Wallet
run: "xcodebuild \
-project Example/ExampleApp.xcodeproj \
-scheme Wallet \
-derivedDataPath .build \
-sdk iphonesimulator"

# DApp build
- name: Build Example Dapp
run: "xcodebuild \
-project Example/ExampleApp.xcodeproj \
-scheme DApp \
-derivedDataPath .build \
-clonedSourcePackagesDirPath SourcePackages \
-sdk iphonesimulator"

# UI tests
- name: UI Tests
run: "xcodebuild \
-project Example/ExampleApp.xcodeproj \
-scheme UITests \
-derivedDataPath .build \
-clonedSourcePackagesDirPath SourcePackages \
-destination 'platform=iOS Simulator,name=iPhone 13' test"
continue-on-error: true
30 changes: 10 additions & 20 deletions .swiftpm/xcode/xcshareddata/xcschemes/WalletConnect.xcscheme
Original file line number Diff line number Diff line change
Expand Up @@ -192,26 +192,6 @@
</BuildableReference>
</CodeCoverageTargets>
<Testables>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "WalletConnectTests"
BuildableName = "WalletConnectTests"
BlueprintName = "WalletConnectTests"
ReferencedContainer = "container:">
</BuildableReference>
</TestableReference>
<TestableReference
skipped = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "IntegrationTests"
BuildableName = "IntegrationTests"
BlueprintName = "IntegrationTests"
ReferencedContainer = "container:">
</BuildableReference>
</TestableReference>
<TestableReference
skipped = "NO">
<BuildableReference
Expand Down Expand Up @@ -272,6 +252,16 @@
ReferencedContainer = "container:">
</BuildableReference>
</TestableReference>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "ChatTests"
BuildableName = "ChatTests"
BlueprintName = "ChatTests"
ReferencedContainer = "container:">
</BuildableReference>
</TestableReference>
</Testables>
</TestAction>
<LaunchAction
Expand Down

0 comments on commit 225901f

Please sign in to comment.