Skip to content
This repository was archived by the owner on Mar 23, 2025. It is now read-only.

Commit 8ed8bb4

Browse files
committed
Use setup-ruby action
1 parent d1cb41f commit 8ed8bb4

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

.github/workflows/test.yml

+10-6
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,12 @@ jobs:
4949
- uses: actions/checkout@v2
5050
- name: Modify Cartfile.resolved
5151
run: sed -i '' -E '/apollographql\/apollo-ios/s/"[0-9.]+"/"${{ matrix.apollo }}"/' Cartfile.resolved
52+
- uses: ruby/setup-ruby@v1
53+
with:
54+
ruby-version: 2.6
55+
bundler-cache: true
56+
env:
57+
BUNDLE_WITHOUT: development:documentation
5258
- uses: actions/cache@v2
5359
id: cache-carthage-build
5460
with:
@@ -60,10 +66,6 @@ jobs:
6066
carthage checkout
6167
( cd Carthage/Checkouts/apollo-ios && swift package resolve ) # Workaround for Carthage's timeout error while reading xcodeproj.
6268
carthage build --platform '${{ matrix.platform }}' --cache-builds --use-xcframeworks --no-use-binaries
63-
- name: Install Ruby dependencies
64-
run: bundle install
65-
env:
66-
BUNDLE_WITHOUT: development:documentation
6769
- name: Run unit tests
6870
run: xcodebuild test -project ApolloDeveloperKit.xcodeproj -scheme ApolloDeveloperKit -sdk '${{ matrix.sdk }}' -destination '${{ matrix.destination }}' | xcpretty
6971
- name: Collect coverages
@@ -88,8 +90,10 @@ jobs:
8890
runs-on: macOS-10.15
8991
steps:
9092
- uses: actions/checkout@v2
91-
- name: Install dependencies
92-
run: bundle install
93+
- uses: ruby/setup-ruby@v1
94+
with:
95+
ruby-version: 2.6
96+
bundler-cache: true
9397
env:
9498
BUNDLE_WITHOUT: documentation:test
9599
- name: Lint podspec

0 commit comments

Comments
 (0)