Sha256: 98e3765a8f1b117f2ac67911cbff5af5eefbefc82adcc1a693020d5671d231a5

Contents?: true

Size: 1.91 KB

Versions: 2

Compression:

Stored size: 1.91 KB

Contents

name: Test
on: 
  workflow_dispatch:
    inputs:
      logLevel:
        description: 'Log level'     
        required: true
        default: 'warning'
      tags:
        description: 'Test scenario tags'
        required: false
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]

env:
  LANGUAGE: nb
  PGUSER: postgres
  PGPASSWORD: password
  RAILS_ENV: test

jobs:
  Rubocop:
    runs-on: ubuntu-20.04
    steps:
      - uses: actions/checkout@v2
      - uses: ruby/setup-ruby@v1
        with:
          ruby-version: '3.0'
          bundler-cache: true # runs 'bundle install' and caches installed gems automatically
      - name: Rubocop
        run: bundle exec rubocop --auto-correct-all
  Test:
    runs-on: ubuntu-20.04
    services:
      postgres:
        image: postgres
        env:
          POSTGRES_PASSWORD: password
        ports:
          - 5432:5432
        # needed because the postgres container does not provide a healthcheck
        options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
    strategy:
      fail-fast: false
      matrix:
        # Due to https://github.com/actions/runner/issues/849, we have to use quotes for '3.0'
        ruby: [ 2.6, 2.7, '3.0', jruby, truffleruby ]
        gemfile: [ ar61, ar60, ar52, ar51 ]
        adapter: [ postgresql, sqlite3 ]
        exclude:
          - ruby: '3.0'
            gemfile: ar52
          - ruby: '3.0'
            gemfile: ar51
          - ruby: jruby
            adapter: sqlite3
    env:
      ADAPTER: ${{ matrix.adapter }}
      BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile
    steps:
      - uses: actions/checkout@v2
      - uses: ruby/setup-ruby@v1
        with:
          ruby-version: ${{ matrix.ruby }}
          bundler-cache: true # runs 'bundle install' and caches installed gems automatically
      - name: Rake test
        run: bundle exec rake test

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
activerecord-time-0.20.0 .github/workflows/test.yml
activerecord-time-0.19.0 .github/workflows/test.yml