mirror of
https://github.com/ms-ati/docile
synced 2023-03-27 23:21:52 -04:00
CI: exclude Gemfile 'checks' group except latest Ruby (#92)
Since we only run Rubocop on the latest MRI Ruby, dont install the "checks" Gemfile group on other rubies in CI.
This commit is contained in:
parent
ba7684f0bd
commit
2cab2611a3
1 changed files with 12 additions and 1 deletions
13
.github/workflows/main.yml
vendored
13
.github/workflows/main.yml
vendored
|
@ -18,14 +18,25 @@ jobs:
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3.0.0
|
- uses: actions/checkout@v3.0.0
|
||||||
|
|
||||||
|
# Conditionally configure bundler via environment variables as advised
|
||||||
|
# * https://github.com/ruby/setup-ruby#bundle-config
|
||||||
|
- name: Set bundler environment variables
|
||||||
|
run: |
|
||||||
|
echo "BUNDLE_WITHOUT=checks" >> $GITHUB_ENV
|
||||||
|
if: matrix.ruby != 3.1
|
||||||
|
|
||||||
- uses: ruby/setup-ruby@v1
|
- uses: ruby/setup-ruby@v1
|
||||||
with:
|
with:
|
||||||
ruby-version: ${{ matrix.ruby }}
|
ruby-version: ${{ matrix.ruby }}
|
||||||
bundler-cache: true
|
bundler-cache: true
|
||||||
|
|
||||||
- run: bundle exec rspec
|
- run: bundle exec rspec
|
||||||
|
|
||||||
- uses: codecov/codecov-action@v3.0.0
|
- uses: codecov/codecov-action@v3.0.0
|
||||||
with:
|
with:
|
||||||
name: ${{ matrix.ruby }}
|
name: ${{ matrix.ruby }}
|
||||||
file: ./coverage/coverage.xml
|
file: ./coverage/coverage.xml
|
||||||
|
|
||||||
- run: bundle exec rubocop
|
- run: bundle exec rubocop
|
||||||
if: matrix.ruby == '3.0'
|
if: matrix.ruby == 3.1
|
||||||
|
|
Loading…
Add table
Reference in a new issue