@@ -2,10 +2,13 @@ name: PactSwift - Consumer
22
33on : [push, workflow_dispatch, repository_dispatch]
44
5+ env :
6+ DEVELOPER_DIR : " /Applications/Xcode_16.1.app/Contents/Developer"
7+
58jobs :
6- test_iOS_SPM :
7- name : iOS SPM - AnimalClient
8- runs-on : macOS-13
9+ test_projects :
10+ name : iOS Concurrency
11+ runs-on : macOS-15
912
1013 env :
1114 PACTFLOW_TOKEN : ${{ secrets.PACTFLOW_TOKEN }}
@@ -21,76 +24,85 @@ jobs:
2124
2225 - name : Run tests
2326 run : |
24- cd Pact-iOS-SPM-Example
25- set -o pipefail && xcodebuild test -project AnimalClient.xcodeproj -scheme AnimalClient -destination "platform=iOS Simulator,name=iPhone 14 Pro" | xcbeautify
26-
27- test_iOS_SPM_ObjC :
28- name : iOS (Obj-C) SPM
29- runs-on : macOS-13
30-
31- steps :
32- - name : Checkout repository
33- uses : actions/checkout@v3
34-
35- - name : Use Xcode 14.3.1
36- run : sudo xcode-select -switch /Applications/Xcode_14.3.1.app
37-
38- - name : Prepare the tools
39- run : |
40- brew tap thii/xcbeautify https://github.com/thii/xcbeautify.git
41- brew install xcbeautify
42-
43- - name : Run tests
44- run : |
45- cd Pact-iOS-ObjC-Example
46- set -o pipefail && xcodebuild clean test -project Pact-iOS-ObjC-Example.xcodeproj -scheme Pact-iOS-ObjC-Example -destination "platform=iOS Simulator,name=iPhone 14 Pro" | xcbeautify
47-
48- test_macOS_SPM :
49- name : macOS SPM
50- runs-on : macOS-13
51-
52- steps :
53- - name : Checkout repository
54- uses : actions/checkout@v3
55-
56- - name : Use Xcode 14.3.1
57- run : sudo xcode-select -switch /Applications/Xcode_14.3.1.app
58-
59- - name : Prepare the tools
60- run : |
61- brew tap thii/xcbeautify https://github.com/thii/xcbeautify.git
62- brew install xcbeautify
63-
64- - name : Run tests
65- run : |
66- cd Pact-macOS-SPM-Example
67- set -o pipefail && xcodebuild test -project Pact-macOS-SPM-Example.xcodeproj -scheme Pact-macOS-SPM-Example -destination "platform=macOS,arch=x86_64" | xcbeautify
68-
69- test_ubuntu :
70- name : Ubuntu Linux
71- runs-on : ubuntu-latest
72-
73- steps :
74- - uses : fwal/setup-swift@v1
75- - name : Get swift version
76- run : swift --version
77-
78- - name : Checkout repository
79- uses : actions/checkout@v3
80-
81- - name : Cache Rust libs
82- uses : actions/cache@v2
83- env :
84- cache-name : cache-rust-libs-pactswift-linux
85- with :
86- path : pact-foundation/rust/target/release
87- key : ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/Pact-Linux/Package.resolved') }}
88- restore-keys : |
89- ${{ runner.os }}-build-${{ env.cache-name }}-
90- ${{ runner.os }}-build-
91- ${{ runner.os }}-
92-
93- - name : Build Run Test
94- run : |
95- cd Pact-Linux-Consumer
96- Support/build_test
27+ cd Pact-Concurrency
28+ xcodebuild test -project Pact-Concurrency.xcodeproj -scheme Pact-Concurrency -destination "platform=iOS Simulator,name=iPhone 16 Pro" | xcbeautify
29+
30+ # steps:
31+ # - name: Checkout repository
32+ # uses: actions/checkout@v3
33+
34+ # - name: Prepare the tools
35+ # run: |
36+ # brew tap thii/xcbeautify https://github.com/thii/xcbeautify.git
37+ # brew install xcbeautify
38+
39+ # - name: Run tests
40+ # run: |
41+ # cd Pact-iOS-SPM-Example
42+ # set -o pipefail && xcodebuild test -project AnimalClient.xcodeproj -scheme AnimalClient -destination "platform=iOS Simulator,name=iPhone 16 Pro" | xcbeautify
43+
44+
45+ # test_iOS_SPM_ObjC:
46+ # name: iOS (Obj-C) SPM
47+ # runs-on: macOS-15
48+
49+ # steps:
50+ # - name: Checkout repository
51+ # uses: actions/checkout@v3
52+
53+ # - name: Prepare the tools
54+ # run: |
55+ # brew tap thii/xcbeautify https://github.com/thii/xcbeautify.git
56+ # brew install xcbeautify
57+
58+ # - name: Run tests
59+ # run: |
60+ # cd Pact-iOS-ObjC-Example
61+ # set -o pipefail && xcodebuild clean test -project Pact-iOS-ObjC-Example.xcodeproj -scheme Pact-iOS-ObjC-Example -destination "platform=iOS Simulator,name=iPhone 16 Pro" | xcbeautify
62+
63+ # test_macOS_SPM:
64+ # name: macOS SPM
65+ # runs-on: macOS-15
66+
67+ # steps:
68+ # - name: Checkout repository
69+ # uses: actions/checkout@v3
70+
71+ # - name: Prepare the tools
72+ # run: |
73+ # brew tap thii/xcbeautify https://github.com/thii/xcbeautify.git
74+ # brew install xcbeautify
75+
76+ # - name: Run tests
77+ # run: |
78+ # cd Pact-macOS-SPM-Example
79+ # set -o pipefail && xcodebuild test -project Pact-macOS-SPM-Example.xcodeproj -scheme Pact-macOS-SPM-Example -destination "platform=macOS" | xcbeautify
80+
81+ # test_ubuntu:
82+ # name: Ubuntu Linux
83+ # runs-on: ubuntu-latest
84+
85+ # steps:
86+ # - uses: fwal/setup-swift@v1
87+ # - name: Get swift version
88+ # run: swift --version
89+
90+ # - name: Checkout repository
91+ # uses: actions/checkout@v3
92+
93+ # - name: Cache Rust libs
94+ # uses: actions/cache@v2
95+ # env:
96+ # cache-name: cache-rust-libs-pactswift-linux
97+ # with:
98+ # path: pact-foundation/rust/target/release
99+ # key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/Pact-Linux/Package.resolved') }}
100+ # restore-keys: |
101+ # ${{ runner.os }}-build-${{ env.cache-name }}-
102+ # ${{ runner.os }}-build-
103+ # ${{ runner.os }}-
104+
105+ # - name: Build Run Test
106+ # run: |
107+ # cd Pact-Linux-Consumer
108+ # Support/build_test
0 commit comments