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 d1f848e commit b487f1f
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 19 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,18 @@ 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:
bundler: "Gemfile.lock"
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Bundle install Example
working-directory: ./Example
run: bundle install
- name: Pod install
working-directory: ./Example
run: bundle exec pod install
uses: ruby/setup-ruby@v1
with:
working-directory: ./Example
bundler: "Gemfile.lock"
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Build and test
run: bundle exec fastlane ci_check
- name: Pod lib lint
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/prepare_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ 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:
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
8 changes: 4 additions & 4 deletions .github/workflows/publish_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ 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:
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 b487f1f

Please sign in to comment.