Skip to content

Commit 1ba3a4c

Browse files
Set up ruby when we set up nodejs
To ensure a consistent environment.
1 parent b381c5a commit 1ba3a4c

File tree

1 file changed

+27
-6
lines changed

1 file changed

+27
-6
lines changed

.github/workflows/ci.yaml

Lines changed: 27 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## Why do we specify bundler-cache: false?
2+
##
3+
## Ideally we should turn this on.
4+
## But this flag runs bundle install and cache, which does not suit our use case here.
5+
## See https://github.com/ruby/setup-ruby?tab=readme-ov-file#caching-bundle-install-automatically
6+
17
name: CI
28

39
on:
@@ -18,6 +24,9 @@ jobs:
1824
- uses: actions/setup-node@v4
1925
with:
2026
node-version-file: "./.tool-versions"
27+
- uses: ruby/setup-ruby@v1
28+
with:
29+
bundler-cache: false
2130
- run: npm ci
2231
- run: npm ci
2332
working-directory: ./website
@@ -66,6 +75,9 @@ jobs:
6675
- uses: actions/setup-node@v4
6776
with:
6877
node-version-file: "./.tool-versions"
78+
- uses: ruby/setup-ruby@v1
79+
with:
80+
bundler-cache: false
6981
- run: npm ci
7082
- run: npm run build
7183
- working-directory: ./example/reactnative
@@ -81,6 +93,9 @@ jobs:
8193
- uses: actions/setup-node@v4
8294
with:
8395
node-version-file: "./.tool-versions"
96+
- uses: ruby/setup-ruby@v1
97+
with:
98+
bundler-cache: false
8499
- run: sudo xcode-select -s /Applications/Xcode_15.4.app/Contents/Developer
85100
- run: npm ci
86101
- run: npm run build
@@ -100,6 +115,9 @@ jobs:
100115
- uses: actions/setup-node@v4
101116
with:
102117
node-version-file: "./.tool-versions"
118+
- uses: ruby/setup-ruby@v1
119+
with:
120+
bundler-cache: false
103121
- run: npm ci
104122
- run: npm run build
105123
- working-directory: ./example/capacitor
@@ -126,12 +144,6 @@ jobs:
126144
node-version-file: "./.tool-versions"
127145
- uses: ruby/setup-ruby@v1
128146
with:
129-
# Do not specify ruby-version so that it picks the version declared in .tool-versions
130-
# See https://github.com/ruby/setup-ruby?tab=readme-ov-file#supported-version-syntax
131-
# ruby-version: "Unspecified intentionally. See the above comment"
132-
# Ideally we should turn this on
133-
# But this flag runs bundle install and cache, which does not suit our use case here.
134-
# See https://github.com/ruby/setup-ruby?tab=readme-ov-file#caching-bundle-install-automatically
135147
bundler-cache: false
136148
- run: sudo xcode-select -s /Applications/Xcode_15.4.app/Contents/Developer
137149
- run: npm install -g appcenter-cli
@@ -198,6 +210,9 @@ jobs:
198210
- uses: actions/setup-node@v4
199211
with:
200212
node-version-file: "./.tool-versions"
213+
- uses: ruby/setup-ruby@v1
214+
with:
215+
bundler-cache: false
201216
- run: npm install -g appcenter-cli
202217
- run: npm ci
203218
- run: npm run build
@@ -245,6 +260,9 @@ jobs:
245260
- uses: actions/setup-node@v4
246261
with:
247262
node-version-file: "./.tool-versions"
263+
- uses: ruby/setup-ruby@v1
264+
with:
265+
bundler-cache: false
248266
- run: sudo xcode-select -s /Applications/Xcode_15.4.app/Contents/Developer
249267
- run: npm install -g appcenter-cli
250268
- run: npm ci
@@ -307,6 +325,9 @@ jobs:
307325
- uses: actions/setup-node@v4
308326
with:
309327
node-version-file: "./.tool-versions"
328+
- uses: ruby/setup-ruby@v1
329+
with:
330+
bundler-cache: false
310331
- run: npm install -g appcenter-cli
311332
- run: npm ci
312333
- run: npm run build

0 commit comments

Comments
 (0)