Skip to content

Commit 1b163c4

Browse files
Add local tests run on ci/cd for Carthage and SPM.
1 parent 6c7d192 commit 1b163c4

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,6 @@ jobs:
3333
run: swift package resolve
3434
- name: Build
3535
run: swift build --build-tests
36-
# No need to run tests more than once, but this should be run in Carghage part
37-
# since it could lost some files in project.
3836
- name: Install ganache
3937
run: npm install ganache --global
4038
- name: Start ganache in background
@@ -62,7 +60,13 @@ jobs:
6260
run: carthage build --no-use-binaries --platform iOS Simulator --use-xcframeworks
6361
- name: Building framework
6462
run: xcodebuild build-for-testing -project "web3swift.xcodeproj" -scheme "web3swift" -destination "${{matrix.destination}}" -testPlan LocalTests
65-
# - name: Running local tests
66-
# run: xcodebuild test-without-building -project "web3swift.xcodeproj" -scheme "web3swift" -destination "${{matrix.destination}}" -testPlan LocalTests
63+
- name: Install ganache
64+
run: npm install ganache --global
65+
- name: Start ganache in background
66+
run: ganache &
67+
- name: Wait till ganache starts
68+
run: sleep 1
69+
- name: Running local tests
70+
run: xcodebuild test-without-building -project "web3swift.xcodeproj" -scheme "web3swift" -destination "${{matrix.destination}}" -testPlan LocalTests
6771
# - name: Running remote tests
6872
# run: xcodebuild test-without-building -project "web3swift.xcodeproj" -scheme "web3swift" -destination "${{matrix.destination}}" -testPlan RemoteTests

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ Package.pins
5353
# Carthage
5454
#
5555
# Add this line if you want to avoid checking in source code from Carthage dependencies.
56-
# Carthage/Checkouts
56+
Carthage/Checkouts
5757

58-
#Carthage/Build
58+
Carthage/Build
5959

6060
# fastlane
6161
#

0 commit comments

Comments
 (0)