Skip to content

Commit

Permalink
Set up ruby when we set up nodejs
Browse files Browse the repository at this point in the history
To ensure a consistent environment.
  • Loading branch information
louischan-oursky committed Feb 25, 2025
1 parent e254667 commit f3be616
Showing 1 changed file with 27 additions and 6 deletions.
33 changes: 27 additions & 6 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## Why do we specify bundler-cache: false?
##
## Ideally we should turn this on.
## But this flag runs bundle install and cache, which does not suit our use case here.
## See https://github.com/ruby/setup-ruby?tab=readme-ov-file#caching-bundle-install-automatically

name: CI

on:
Expand All @@ -18,6 +24,9 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version-file: "./.tool-versions"
- uses: ruby/setup-ruby@v1
with:
bundler-cache: false
- run: npm ci
- run: npm ci
working-directory: ./website
Expand Down Expand Up @@ -66,6 +75,9 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version-file: "./.tool-versions"
- uses: ruby/setup-ruby@v1
with:
bundler-cache: false
- run: npm ci
- run: npm run build
- working-directory: ./example/reactnative
Expand All @@ -81,6 +93,9 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version-file: "./.tool-versions"
- uses: ruby/setup-ruby@v1
with:
bundler-cache: false
- run: sudo xcode-select -s /Applications/Xcode_15.4.app/Contents/Developer
- run: npm ci
- run: npm run build
Expand All @@ -100,6 +115,9 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version-file: "./.tool-versions"
- uses: ruby/setup-ruby@v1
with:
bundler-cache: false
- run: npm ci
- run: npm run build
- working-directory: ./example/capacitor
Expand All @@ -126,12 +144,6 @@ jobs:
node-version-file: "./.tool-versions"
- uses: ruby/setup-ruby@v1
with:
# Do not specify ruby-version so that it picks the version declared in .tool-versions
# See https://github.com/ruby/setup-ruby?tab=readme-ov-file#supported-version-syntax
# ruby-version: "Unspecified intentionally. See the above comment"
# Ideally we should turn this on
# But this flag runs bundle install and cache, which does not suit our use case here.
# See https://github.com/ruby/setup-ruby?tab=readme-ov-file#caching-bundle-install-automatically
bundler-cache: false
- run: sudo xcode-select -s /Applications/Xcode_15.4.app/Contents/Developer
- run: npm install -g appcenter-cli
Expand Down Expand Up @@ -198,6 +210,9 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version-file: "./.tool-versions"
- uses: ruby/setup-ruby@v1
with:
bundler-cache: false
- run: npm install -g appcenter-cli
- run: npm ci
- run: npm run build
Expand Down Expand Up @@ -245,6 +260,9 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version-file: "./.tool-versions"
- uses: ruby/setup-ruby@v1
with:
bundler-cache: false
- run: sudo xcode-select -s /Applications/Xcode_15.4.app/Contents/Developer
- run: npm install -g appcenter-cli
- run: npm ci
Expand Down Expand Up @@ -307,6 +325,9 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version-file: "./.tool-versions"
- uses: ruby/setup-ruby@v1
with:
bundler-cache: false
- run: npm install -g appcenter-cli
- run: npm ci
- run: npm run build
Expand Down

0 comments on commit f3be616

Please sign in to comment.