Skip to content

Commit 31ce115

Browse files
Merge pull request #545 from yaroslavyaroslav/feature/github-actions-2.0
2 parents 26f0d55 + 4c1a853 commit 31ce115

File tree

2 files changed

+73
-10
lines changed

2 files changed

+73
-10
lines changed

.github/workflows/macOS-11.yml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
name: "macOS 11"
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- master
7+
8+
env:
9+
DEVELOPER_DIR: /Applications/Xcode_13.2.1.app/Contents/Developer
10+
11+
jobs:
12+
spm:
13+
name: Swift Package Manager 5.5
14+
runs-on: macOS-11
15+
concurrency:
16+
group: spm-${{ github.run_id }}
17+
cancel-in-progress: false
18+
steps:
19+
- uses: actions/checkout@v2
20+
- name: Resolve dependencies
21+
run: swift package resolve
22+
- name: Build
23+
run: swift build --build-tests
24+
- name: Install ganache
25+
run: npm install ganache --global
26+
- name: Start ganache in background
27+
run: ganache &
28+
- name: Wait till ganache starts
29+
run: sleep 1
30+
- name: Run local tests
31+
run: swift test --skip-build -c debug --filter localTests
32+
- name: Run remote tests
33+
run: swift test --skip-build -c debug --filter remoteTests
34+
35+
carthage-iOS:
36+
name: Carthage
37+
runs-on: macOS-11
38+
concurrency:
39+
group: carthage-${{ github.run_id }}
40+
cancel-in-progress: false
41+
strategy:
42+
fail-fast: false
43+
max-parallel: 2
44+
matrix:
45+
destination: ['OS=15.2,name=iPhone 13']
46+
steps:
47+
- uses: actions/checkout@v2
48+
- name: Resolving dependencies
49+
run: carthage checkout
50+
- name: Building dependencies
51+
run: carthage build --no-use-binaries --platform iOS Simulator --use-xcframeworks
52+
- name: Building framework
53+
run: xcodebuild build-for-testing -project "web3swift.xcodeproj" -scheme "web3swift" -destination "${{matrix.destination}}"
54+
- name: Install ganache
55+
run: npm install ganache --global
56+
- name: Start ganache in background
57+
run: ganache &
58+
- name: Wait till ganache starts
59+
run: sleep 1
60+
- name: Run local tests
61+
run: xcodebuild test-without-building -project "web3swift.xcodeproj" -scheme "web3swift" -destination "${{matrix.destination}}" -testPlan LocalTests
62+
- name: Run remote tests
63+
run: xcodebuild test-without-building -project "web3swift.xcodeproj" -scheme "web3swift" -destination "${{matrix.destination}}" -testPlan RemoteTests

.github/workflows/ci.yml renamed to .github/workflows/macOS-12.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: "Web3swift CI"
1+
name: "macOS 12"
22

33
on:
44
push:
@@ -20,15 +20,16 @@ on:
2020
- develop
2121
- unstable
2222

23+
env:
24+
DEVELOPER_DIR: /Applications/Xcode_13.3.1.app/Contents/Developer
25+
2326
jobs:
2427
spm:
25-
name: Swift Package Manager 5.4
26-
runs-on: macOS-11
28+
name: Swift Package Manager 5.5
29+
runs-on: macOS-12
2730
concurrency:
2831
group: spm-${{ github.run_id }}
2932
cancel-in-progress: false
30-
env:
31-
DEVELOPER_DIR: /Applications/Xcode_12.5.1.app/Contents/Developer
3233
steps:
3334
- uses: actions/checkout@v2
3435
- name: Resolve dependencies
@@ -45,19 +46,18 @@ jobs:
4546
run: swift test --skip-build -c debug --filter localTests
4647
- name: Run remote tests
4748
run: swift test --skip-build -c debug --filter remoteTests
48-
carthage:
49+
50+
carthage-iOS:
4951
name: Carthage
50-
runs-on: macOS-11
52+
runs-on: macOS-12
5153
concurrency:
5254
group: carthage-${{ github.run_id }}
5355
cancel-in-progress: false
54-
env:
55-
DEVELOPER_DIR: /Applications/Xcode_12.5.1.app/Contents/Developer
5656
strategy:
5757
fail-fast: false
5858
max-parallel: 2
5959
matrix:
60-
destination: ['OS=14.5,name=iPhone 12']
60+
destination: ['OS=15.4,name=iPhone 13']
6161
steps:
6262
- uses: actions/checkout@v2
6363
- name: Resolving dependencies

0 commit comments

Comments
 (0)