Skip to content

Commit c3a81a0

Browse files
chore(ci): add Carthage CI check (#800)
1 parent bce0995 commit c3a81a0

File tree

4 files changed

+20
-6
lines changed

4 files changed

+20
-6
lines changed

.github/workflows/carthage.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Carthage
2+
on: [pull_request]
3+
jobs:
4+
check:
5+
runs-on: macos-12
6+
steps:
7+
- name: Select Xcode version
8+
run: sudo xcode-select -s '/Applications/Xcode_13.4.app/Contents/Developer'
9+
- name: Initialize Cartfile
10+
run: |
11+
tee Cartfile <<<"github \"algolia/algoliasearch-client-swift\" \"${{ github.head_ref }}\""
12+
carthage update --no-build
13+
sh ./Carthage/Checkouts/algoliasearch-client-swift/carthage-prebuild
14+
carthage build --use-xcframeworks --platform ios

.github/workflows/deployment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
- major
88
jobs:
99
deploy:
10-
runs-on: macos-11
10+
runs-on: macos-12
1111
env:
1212
GITHUB_ACTION: ${{ github.action_path }}
1313
GITHUB_PERSONAL_ACCESS_TOKEN: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}

.github/workflows/pods.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ name: Cocoapods lint
22
on: [pull_request]
33
jobs:
44
lint:
5-
runs-on: macos-11
5+
runs-on: macos-12
66
steps:
77
- uses: actions/checkout@v2
88
- name: Select Xcode version
9-
run: sudo xcode-select -s '/Applications/Xcode_13.2.app/Contents/Developer'
9+
run: sudo xcode-select -s '/Applications/Xcode_13.4.app/Contents/Developer'
1010
- name: Pod lib lint
11-
run: pod lib lint
11+
run: pod lib lint --allow-warnings

.github/workflows/tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on: [push]
44

55
jobs:
66
test:
7-
runs-on: macos-11
7+
runs-on: macos-12
88
env:
99
ALGOLIA_APPLICATION_ID_1: ${{ secrets.ALGOLIA_APPLICATION_ID_1 }}
1010
ALGOLIA_ADMIN_KEY_1: ${{ secrets.ALGOLIA_ADMIN_KEY_1 }}
@@ -20,7 +20,7 @@ jobs:
2020
steps:
2121
- uses: actions/checkout@v2
2222
- name: Select Xcode version
23-
run: sudo xcode-select -s '/Applications/Xcode_13.2.app/Contents/Developer'
23+
run: sudo xcode-select -s '/Applications/Xcode_13.4.app/Contents/Developer'
2424
- name: Build project
2525
run: swift build
2626
- name: Run tests

0 commit comments

Comments
 (0)