colszowka/simplecov

View on GitHub
.github/workflows/unstable.yml

Summary

Maintainability
Test Coverage
name: unstable

on:
  schedule:
    - cron: '0 0 * * *'

jobs:
  test:
    runs-on: ubuntu-16.04

    strategy:
      matrix:
        ruby: [ruby-head, jruby-head]

    steps:
      - uses: actions/checkout@v2

      - name: Set up RVM
        run: curl -sSL https://get.rvm.io | bash

      - name: Set up Ruby
        run: |
          source $HOME/.rvm/scripts/rvm
          rvm install ${{ matrix.ruby }} --binary --autolibs=disable
          rvm --default use ${{ matrix.ruby }}

      - name: Install java
        run: sudo apt-get -y install openjdk-8-jre-headless
        if: matrix.ruby == 'jruby-head'

      - name: Get sqlite for Rails test projects
        run: sudo apt-get install libsqlite3-dev

      - name: Install dependencies
        run: |
          source $HOME/.rvm/scripts/rvm
          bundle config set --local without benchmark
          bundle install --jobs=3

      - name: Run tests (MRI)
        run: |
          source $HOME/.rvm/scripts/rvm
          bundle exec rake
        if: matrix.ruby == 'ruby-head'

      - name: Run tests (JRuby)
        run: |
          source $HOME/.rvm/scripts/rvm
          JRUBY_OPTS=--debug bundle exec rake
        if: matrix.ruby == 'jruby-head'