-
Notifications
You must be signed in to change notification settings - Fork 191
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #352 from WalletConnect/hotfix/ci-improvements
[CI] Pipeline improvements develop sync
- Loading branch information
Showing
2 changed files
with
75 additions
and
40 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,60 @@ | ||
name: 'ci' | ||
description: 'Executes Swift specific CI steps' | ||
inputs: | ||
type: | ||
description: 'The type of CI step to run' | ||
required: true | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
# Package builds | ||
- name: Run tests | ||
if: inputs.type == 'unit-tests' | ||
shell: bash | ||
run: "xcodebuild \ | ||
-project Example/ExampleApp.xcodeproj \ | ||
-scheme WalletConnect \ | ||
-clonedSourcePackagesDirPath SourcePackages \ | ||
-sdk iphonesimulator" | ||
|
||
# Integration tests | ||
- name: Run integration tests | ||
if: inputs.type == 'integration-tests' | ||
shell: bash | ||
run: "xcodebuild \ | ||
-project Example/ExampleApp.xcodeproj \ | ||
-scheme IntegrationTests \ | ||
-clonedSourcePackagesDirPath SourcePackages \ | ||
-destination 'platform=iOS Simulator,name=iPhone 13' test" | ||
|
||
# Wallet build | ||
- name: Build Example Wallet | ||
if: inputs.type == 'build-example-wallet' | ||
shell: bash | ||
run: "xcodebuild \ | ||
-project Example/ExampleApp.xcodeproj \ | ||
-scheme Wallet \ | ||
-clonedSourcePackagesDirPath SourcePackages \ | ||
-sdk iphonesimulator" | ||
|
||
# DApp build | ||
- name: Build Example Dapp | ||
if: inputs.type == 'build-example-dapp' | ||
shell: bash | ||
run: "xcodebuild \ | ||
-project Example/ExampleApp.xcodeproj \ | ||
-scheme DApp \ | ||
-clonedSourcePackagesDirPath SourcePackages \ | ||
-sdk iphonesimulator" | ||
|
||
# UI tests | ||
- name: UI Tests | ||
if: inputs.type == 'ui-tests' | ||
shell: bash | ||
run: "xcodebuild \ | ||
-project Example/ExampleApp.xcodeproj \ | ||
-scheme UITests \ | ||
-clonedSourcePackagesDirPath SourcePackages \ | ||
-destination 'platform=iOS Simulator,name=iPhone 13' test" | ||
continue-on-error: true |
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