Skip to content

v5.1.0p1

v5.1.0p1 #57

Workflow file for this run

name: Upload coverage reports to Codecov
on:
push:
branches: ["5-stable"]
pull_request:
branches: ["*"]
jobs:
codecov:
runs-on: ubuntu-latest
steps:
- name: Checkout the repository(CRuby)
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.ref }}
- name: Setup CRuby
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.3"
- name: Install minitest
run: gem install minitest -v 5.15.0
- name: Install oj
run: gem install oj -v 3.10.0
- name: Install bundle, rake, simplecov, and simplecov-cobertura
run: gem install bundle rake simplecov simplecov-cobertura
- name: Check the CRuby version
run: ruby -v
- name: Execute public tests with the coverage report
run: ruby -I./lib ./test/coverage.rb
- name: Run Codecov on GitHub Actions
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage/coverage.xml
verbose: true