Skip to content

testing

testing #56

Workflow file for this run

name: RSpec
on:
- push
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.5
bundler-cache: true
- name: Run tests
run: bundle exec rspec
# - name: 'Upload Coverage Report'
# uses: actions/upload-artifact@v4
# with:
# name: coverage-report
# path: ./coverage
- name: Code Coverage
uses: paambaati/codeclimate-action@v9.0.0
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
with:
debug: true
coverageCommand: bundle exec rspec
coverageLocations: |
${{github.workspace}}/coverage/.resultset.json:simplecov
# coverage:
# needs: [ test ]
# name: coverage
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - name: Download coverage report
# uses: actions/download-artifact@v4
# with:
# name: coverage-report
# path: ./coverage
# - uses: paambaati/codeclimate-action@v9.0.0
# env:
# # Set CC_TEST_REPORTER_ID as secret of your repo
# CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}}
# with:
# debug: true