Sha256: 14bb9f28e43b044a6b0e3984132e138b23bdd20ac048dae4c1286b90f5691ecc

Contents?: true

Size: 860 Bytes

Versions: 11

Compression:

Stored size: 860 Bytes

Contents

name: Build

on:
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]

jobs:
  test:
    runs-on: ubuntu-latest
    strategy:
      fail-fast: false
      matrix:
        ruby-version: ['2.5.1', '2.6.2', '2.7.1', '3.0.1']
    env:
      DB_DATABASE: workhorse
      DB_USER: root
      DB_PASSWORD: 'root'
      DB_HOST: localhost

    steps:
    - uses: actions/checkout@v2
    - name: Set up Ruby
      uses: ruby/setup-ruby@v1
      with:
        ruby-version: ${{ matrix.ruby-version }}
        bundler-cache: true
    - name: Startup database
      run: |
        sudo /etc/init.d/mysql start
        mysql -u${{ env.DB_USER }} -p${{ env.DB_PASSWORD }} -e 'CREATE DATABASE ${{ env.DB_DATABASE }};'
    - name: Run rake tests
      run: bundle exec rake test TESTOPTS='--verbose'
    - name: Run rubocop
      run: bundle exec rubocop

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
workhorse-1.2.15 .github/workflows/ruby.yml
workhorse-1.2.14 .github/workflows/ruby.yml
workhorse-1.2.13 .github/workflows/ruby.yml
workhorse-1.2.12 .github/workflows/ruby.yml
workhorse-1.2.11 .github/workflows/ruby.yml
workhorse-1.2.10 .github/workflows/ruby.yml
workhorse-1.2.9 .github/workflows/ruby.yml
workhorse-1.2.8 .github/workflows/ruby.yml
workhorse-1.2.7 .github/workflows/ruby.yml
workhorse-1.2.6 .github/workflows/ruby.yml
workhorse-1.2.5 .github/workflows/ruby.yml