Sha256: 191b7611c3bb56a8d20775c06bc0ea70a838a2f004a2581adf99923826a132f7

Contents?: true

Size: 1.29 KB

Versions: 3

Compression:

Stored size: 1.29 KB

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'
          - '3.1.2'
          - '3.2.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
        uses: nick-fields/retry@v2
        with:
          timeout_seconds: 120
          retry_on: any
          max_attempts: 3
          command: bundle exec rake test TESTOPTS='--verbose'

  linters:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - name: Set up Ruby
        uses: ruby/setup-ruby@v1
        with:
          ruby-version: 2.5.1
          bundler-cache: true
      - name: Run rubocop
        run: bundle exec rubocop

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
workhorse-1.2.24 .github/workflows/ruby.yml
workhorse-1.2.23 .github/workflows/ruby.yml
workhorse-1.2.22 .github/workflows/ruby.yml