Skip to content

Commit

Permalink
Improve GithubActions settings
Browse files Browse the repository at this point in the history
  • Loading branch information
n-rodriguez committed Aug 4, 2024
1 parent 45a629e commit 8dddabc
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ jobs:
- rails_7.0.8
- rails_6.1.7

env: # $BUNDLE_GEMFILE must be set at the job level, so it is set for all steps
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.rails }}.gemfile

steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -37,21 +40,11 @@ jobs:
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}

- name: Bundle
env:
RAILS_VERSION: ${{ matrix.rails }}
BUNDLE_GEMFILE: gemfiles/${{ matrix.rails }}.gemfile
run: |
gem install bundler
bundle config path vendor/bundle
bundle install --jobs 4 --retry 3
bundler-cache: true

- name: RSpec & publish code coverage
uses: paambaati/[email protected]
env:
RAILS_VERSION: ${{ matrix.rails }}
BUNDLE_GEMFILE: gemfiles/${{ matrix.rails }}.gemfile
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
with:
coverageCommand: bin/rake

0 comments on commit 8dddabc

Please sign in to comment.