name: coverage

on: [push, pull_request]

permissions:  # added using https://github.com/step-security/secure-workflows
  contents: read

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
    - uses: ruby/setup-ruby@4ff6f3611a42bc75eee1e5138240eb1613f48c8f # v1.266.0
      with:
        ruby-version: '3.0'
    - name: Install dependencies
      run: gem install test-unit coveralls
    - name: Run test
      env:
        COVERALLS: "yes"
      run: ruby -Ilib exe/rake
