Skip to content

Add bake as direct dependency. #74

Add bake as direct dependency.

Add bake as direct dependency. #74

Workflow file for this run

name: Coverage
on: [push, pull_request]
permissions:
contents: read
env:
CONSOLE_OUTPUT: XTerm
COVERAGE: PartialSummary
jobs:
test:
name: ${{matrix.ruby}} on ${{matrix.os}}
runs-on: ${{matrix.os}}-latest
strategy:
matrix:
os:
- ubuntu
- macos
ruby:
- "3.3"
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{matrix.ruby}}
bundler-cache: true
- name: Installing packages (ubuntu)
if: matrix.os == 'ubuntu'
run: sudo apt-get install wget
- name: Installing packages (macos)
if: matrix.os == 'macos'
run: brew install wget
- name: Run tests
timeout-minutes: 10
run: |
git config --global user.email "[email protected]"
git config --global user.name "Samuel Williams"
git config --global init.defaultBranch main
bundle exec bake test
- uses: actions/upload-artifact@v3
with:
name: coverage-${{matrix.os}}-${{matrix.ruby}}
path: .covered.db
validate:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: "3.3"
bundler-cache: true
- uses: actions/download-artifact@v3
- name: Validate coverage
timeout-minutes: 5
run: bundle exec bake covered:validate --paths */.covered.db \;