Skip to content

Commit

Permalink
Cleanup for consistency
Browse files Browse the repository at this point in the history
- Move ENV vars to global list
- Ensure code climate only runs on 1 job
  • Loading branch information
Fryguy committed Feb 7, 2022
1 parent 06aca22 commit 2196602
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,19 @@ jobs:
rails-version:
- '6.0'
- '6.1'
env:
TEST_RAILS_VERSION: ${{ matrix.rails-version }}
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
env:
TEST_RAILS_VERSION: ${{ matrix.rails-version }}
- name: Run tests
run: bundle exec rake
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
- if: ${{ github.ref == 'refs/heads/master' && matrix.ruby-version == '2.7' }}
name: Report code coverage
- name: Report code coverage
if: ${{ github.ref == 'refs/heads/master' && matrix.ruby-version == '2.7' && matrix.rails-version == '6.1' }}
continue-on-error: true
uses: paambaati/codeclimate-action@v3.0.0
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}

0 comments on commit 2196602

Please sign in to comment.