Skip to content

Add junit formatter and codecov upload #42

Add junit formatter and codecov upload

Add junit formatter and codecov upload #42

Workflow file for this run

name: test
permissions: read-all
on: [push, pull_request]
concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}
cancel-in-progress: false
jobs:
rspec:
runs-on: ubuntu-latest
strategy:
matrix:
ruby: [ruby, jruby, truffleruby]
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- run: bundle exec rspec
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- run: bundle exec rspec
- uses: codecov/codecov-action@v5
continue-on-error: true
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- uses: codecov/test-results-action@v1
continue-on-error: true
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: coverage/junit-coverage.xml
- uses: codacy/[email protected]
continue-on-error: true
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
coverage-reports: coverage/coverage.xml