Skip to content

Commit caf7410

Browse files
authored
chore: add cocoapods caching to integration tests. (#1772)
1 parent 8f635d0 commit caf7410

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

.github/composite_actions/run_xcodebuild_test/action.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
name: 'Run Test'
2-
description: 'Action runs the test specified at project_path for workspace and scheme'
1+
name: 'Run pod install; xcodebuild test'
2+
description: 'Action runs pod install and then runs the tests specified at project_path for workspace and scheme'
33

44
inputs:
55
project_path:
@@ -19,7 +19,15 @@ inputs:
1919
runs:
2020
using: "composite"
2121
steps:
22-
- name: CocoaPod Install
22+
- name: CocoaPods Cache
23+
uses: actions/cache@937d24475381cd9c75ae6db12cb4e79714b926ed
24+
with:
25+
path: ~/Library/Caches/CocoaPods
26+
key: pods-${{ inputs.workspace }}-${{ hashFiles('**/Podfile.lock') }}
27+
restore-keys: |
28+
pods-${{ inputs.workspace }}-
29+
30+
- name: CocoaPods Install
2331
run: |
2432
cd ${{ inputs.project_path }}
2533
pod install

.github/workflows/integ_test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: IntegrationTest
1+
name: Integration Tests
22
on:
33
push:
44
branches: [main]

0 commit comments

Comments
 (0)