Skip to content

Commit 1b5bc16

Browse files
committed
Update github actions configuration
1 parent f116d8b commit 1b5bc16

File tree

2 files changed

+90
-107
lines changed

2 files changed

+90
-107
lines changed

.github/workflows/test_projects.yml

+90-81
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,13 @@ name: PactSwift - Consumer
22

33
on: [push, workflow_dispatch, repository_dispatch]
44

5+
env:
6+
DEVELOPER_DIR: "/Applications/Xcode_16.1.app/Contents/Developer"
7+
58
jobs:
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 }}
@@ -14,83 +17,89 @@ jobs:
1417
- name: Checkout repository
1518
uses: actions/checkout@v3
1619

17-
- name: Prepare the tools
18-
run: |
19-
brew tap thii/xcbeautify https://github.com/thii/xcbeautify.git
20-
brew install xcbeautify
21-
2220
- name: Run tests
2321
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
22+
ls -la
23+
cd Pact-Concurrency
24+
ls -la
25+
set -o pipefail && xcodebuild test -project Pact-Concurrency.xcodeproj -scheme Pact-Concurrency -destination "platform=iOS Simulator,name=iPhone 16 Pro" | xcbeautify
26+
27+
# steps:
28+
# - name: Checkout repository
29+
# uses: actions/checkout@v3
30+
31+
# - name: Prepare the tools
32+
# run: |
33+
# brew tap thii/xcbeautify https://github.com/thii/xcbeautify.git
34+
# brew install xcbeautify
35+
36+
# - name: Run tests
37+
# run: |
38+
# cd Pact-iOS-SPM-Example
39+
# set -o pipefail && xcodebuild test -project AnimalClient.xcodeproj -scheme AnimalClient -destination "platform=iOS Simulator,name=iPhone 16 Pro" | xcbeautify
40+
41+
42+
# test_iOS_SPM_ObjC:
43+
# name: iOS (Obj-C) SPM
44+
# runs-on: macOS-15
45+
46+
# steps:
47+
# - name: Checkout repository
48+
# uses: actions/checkout@v3
49+
50+
# - name: Prepare the tools
51+
# run: |
52+
# brew tap thii/xcbeautify https://github.com/thii/xcbeautify.git
53+
# brew install xcbeautify
54+
55+
# - name: Run tests
56+
# run: |
57+
# cd Pact-iOS-ObjC-Example
58+
# 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
59+
60+
# test_macOS_SPM:
61+
# name: macOS SPM
62+
# runs-on: macOS-15
63+
64+
# steps:
65+
# - name: Checkout repository
66+
# uses: actions/checkout@v3
67+
68+
# - name: Prepare the tools
69+
# run: |
70+
# brew tap thii/xcbeautify https://github.com/thii/xcbeautify.git
71+
# brew install xcbeautify
72+
73+
# - name: Run tests
74+
# run: |
75+
# cd Pact-macOS-SPM-Example
76+
# set -o pipefail && xcodebuild test -project Pact-macOS-SPM-Example.xcodeproj -scheme Pact-macOS-SPM-Example -destination "platform=macOS" | xcbeautify
77+
78+
# test_ubuntu:
79+
# name: Ubuntu Linux
80+
# runs-on: ubuntu-latest
81+
82+
# steps:
83+
# - uses: fwal/setup-swift@v1
84+
# - name: Get swift version
85+
# run: swift --version
86+
87+
# - name: Checkout repository
88+
# uses: actions/checkout@v3
89+
90+
# - name: Cache Rust libs
91+
# uses: actions/cache@v2
92+
# env:
93+
# cache-name: cache-rust-libs-pactswift-linux
94+
# with:
95+
# path: pact-foundation/rust/target/release
96+
# key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/Pact-Linux/Package.resolved') }}
97+
# restore-keys: |
98+
# ${{ runner.os }}-build-${{ env.cache-name }}-
99+
# ${{ runner.os }}-build-
100+
# ${{ runner.os }}-
101+
102+
# - name: Build Run Test
103+
# run: |
104+
# cd Pact-Linux-Consumer
105+
# Support/build_test

.github/workflows/verify_provider.yml

-26
This file was deleted.

0 commit comments

Comments
 (0)