Skip to content
This repository has been archived by the owner on May 4, 2024. It is now read-only.

Commit

Permalink
Config codeclimate-action
Browse files Browse the repository at this point in the history
  • Loading branch information
st0012 committed Dec 29, 2019
1 parent c54ef05 commit d52db10
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,29 @@ jobs:
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v1

- name: Set up Ruby ${{ matrix.ruby_version }}
uses: actions/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby_version }}

- name: Install sqlite
run: |
# See https://github.community/t5/GitHub-Actions/ubuntu-latest-Apt-repository-list-issues/td-p/41122/page/2
sudo rm -f /etc/apt/sources.list.d/dotnetdev.list /etc/apt/sources.list.d/microsoft-prod.list
sudo apt-get update
sudo apt-get install libsqlite3-dev
- name: Build and test with Rails ${{ matrix.rails_version }}
env:
RAILS_VERSION: ${{ matrix.rails_version }}
- name: Build with Rails ${{ matrix.rails_version }}
run: |
gem install bundler
bundle install --jobs 4 --retry 3
bundle exec rake
- name: Run test with Rails ${{ matrix.rails_version }} and publish result
uses: paambaati/codeclimate-action@v2.3.0
env:
RAILS_VERSION: ${{ matrix.rails_version }}
CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}}
with:
coverageCommand: bundle exec rake
debug: true

0 comments on commit d52db10

Please sign in to comment.