Skip to content

Commit

Permalink
Update CI/CD Scripts to use new ruby version
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandre-pod committed Jun 7, 2024
1 parent 15f8e0c commit a10301e
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 16 deletions.
19 changes: 12 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,20 @@ jobs:
runs-on: macOS-latest

steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.6.5
- uses: actions/checkout@v3
- name: Bundle install
run: bundle install
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.2.2'
bundler: "Gemfile.lock"
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Bundle install Example
working-directory: ./Example
run: bundle install
uses: ruby/setup-ruby@v1
with:
working-directory: ./Example
ruby-version: '3.2.2'
bundler: "Gemfile.lock"
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Pod install
working-directory: ./Example
run: bundle exec pod install
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/prepare_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,13 @@ jobs:

if: contains(github.ref, 'release') # allow to filter on release branches only
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.6.5
- uses: actions/checkout@v3
- name: Bundle install
run: bundle install
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.2.2'
bundler: "Gemfile.lock"
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Prepare release
env:
GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN_CI }}
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/publish_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,12 @@ jobs:

steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.6.5
- name: Bundle install
run: bundle install
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.2.2'
bundler: "Gemfile.lock"
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Publish release
env:
GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN_CI }}
Expand Down

0 comments on commit a10301e

Please sign in to comment.