Skip to content

Coverage Main

Coverage Main #2

Workflow file for this run

name: Coverage Main
on:
workflow_dispatch:
jobs:
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install libvips
run: sudo apt-get update && sudo apt-get install -y libvips
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.4'
bundler-cache: true
- name: Run tests with coverage
env:
COVERAGE: '1'
run: bundle exec rspec
- name: Upload main coverage baseline
uses: actions/upload-artifact@v4
with:
name: main-coverage
path: coverage/.resultset.json
- name: Upload coverage reports
uses: actions/upload-artifact@v4
with:
name: main-coverage-reports
path: coverage/