Sha256: 4323f91c6238b508b85320447f0c74a569996fb403eddb256449a1185d045eb2

Contents?: true

Size: 1.24 KB

Versions: 1

Compression:

Stored size: 1.24 KB

Contents

name: Ruby
on: [push]
jobs:
  build:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        ruby: ['3.3', '3.0']
    steps:
      - uses: actions/checkout@v3
        with:
          fetch-depth: 0 # fetch all since test fixtures depend on history
      - name: Set up Ruby ${{ matrix.ruby }}
        uses: ruby/setup-ruby@v1
        with:
          ruby-version: ${{ matrix.ruby }}
      - name: Build and test with Rake
        run: |
          gem install bundler undercover --no-doc
          bundle install --jobs 4 --retry 3
          bundle exec rake
      - name: undercover (local)
        run: |
          git fetch --update-head-ok origin master:master
          undercover --compare master
      - uses: actions/upload-artifact@v3
        with:
          name: undercover.lcov
          path: coverage/lcov/undercover.lcov
  coverage:
    runs-on: ubuntu-latest
    needs: build
    steps:
      - uses: actions/download-artifact@v3
        with:
          name: undercover.lcov
      - name: Upload coverage
        run: |
          ruby -e "$(curl -s https://undercover-ci.com/uploader.rb)" -- \
            --repo grodowski/undercover \
            --commit $GITHUB_SHA \
            --lcov /home/runner/work/undercover/undercover/undercover.lcov

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
undercover-0.5.0 .github/workflows/ruby.yml