Skip to content

Bump actions/checkout from 3 to 4 #125

Bump actions/checkout from 3 to 4

Bump actions/checkout from 3 to 4 #125

Workflow file for this run

name: Test Coverage
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
coverage:
name: coverage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@8a45918450651f5e4784b6031db26f4b9f76b251
with:
ruby-version: 3.0
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Install cc-test-reporter and prebuild notification
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: Run tests
env:
COVERAGE: 1
API_KEY: "${{secrets.API_KEY}}"
DYNAMIC_LINK_DOMAIN: "${{ secrets.DYNAMIC_LINK_DOMAIN }}"
run: bundle exec rspec
- name: CodeClimate Post-build upload
env:
CC_TEST_REPORTER_ID: 22b531be7956bd878ec8ce211da98c483c9724eebc8eb72f99d064f00aa6e985
run: ./cc-test-reporter -d -t simplecov after-build