File: unstable.yml

package info (click to toggle)
ruby-simplecov 0.22.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,512 kB
  • sloc: ruby: 5,550; makefile: 10
file content (50 lines) | stat: -rw-r--r-- 1,215 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
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'