Coverage Main #2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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/ |