use codeclimate from gem

This commit is contained in:
Brenda Wallace
2021-01-04 22:43:14 +13:00
committed by Brenda Wallace
parent 441831f9a5
commit fb9c42aaf5

View File

@@ -99,17 +99,16 @@ jobs:
- name: Install required JS packages
run: yarn install
- name: Setup CodeClimate Reporter
run: |
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
chmod +x ./cc-test-reporter
./cc-test-reporter before-build
- name: install chrome
run: sudo apt-get install google-chrome-stable
- name: Prepare database for testing
run: bundle exec rails db:prepare
run: bundle exec rails db:prepare assets:precompile search:reindex
- name: Run rspec (report results to Percy.io and CodeClimate)
run: bundle exec rspec spec && ./cc-test-reporter after-build
run: bundle exec rspec spec -fd
- name: Report to code climate
run: |
gem install codeclimate-test-reporter
codeclimate-test-reporter