-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
45a629e
commit 8dddabc
Showing
1 changed file
with
4 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 |