Sha256: 841761d089e094758d935f8aec4d77540bbc8d0c2bbf42a82026c2b9f8694734

Contents?: true

Size: 1.21 KB

Versions: 5

Compression:

Stored size: 1.21 KB

Contents

on:
  schedule:
    # 05:30 UTC
    - cron:  '30 5 * * *'
name: nightly-unit-tests
jobs:
  test:
    runs-on: ubuntu-latest
    strategy:
      max-parallel: 4
      matrix:
        # Run unit tests all supported combinations of Ruby and ActiveRecord.
        ruby: [2.5, 2.6, 2.7, 3.0]
        ar: [6.0.0, 6.0.1, 6.0.2.2, 6.0.3.7, 6.0.4, 6.1.0, 6.1.1, 6.1.2.1, 6.1.3.2, 6.1.4]
        # Exclude Ruby 3.0 and ActiveRecord 6.0.x as that combination is not supported.
        exclude:
          - ruby: 3.0
            ar: 6.0.0
          - ruby: 3.0
            ar: 6.0.1
          - ruby: 3.0
            ar: 6.0.2.2
          - ruby: 3.0
            ar: 6.0.3.7
          - ruby: 3.0
            ar: 6.0.4
    steps:
    - uses: actions/checkout@v2
    - name: Set up Ruby
      uses: ruby/setup-ruby@v1
      with:
        # Disable caching as we are overriding the ActiveRecord below.
        bundler-cache: false
        ruby-version: ${{ matrix.ruby }}
    - name: Set ActiveRecord version
      run: sed -i "s/\"activerecord\", \"~> 6.1.4\"/\"activerecord\", \"${{ matrix.ar }}\"/" activerecord-spanner-adapter.gemspec
    - name: Install dependencies
      run: bundle install
    - name: Run tests
      run: bundle exec rake test

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
activerecord-spanner-adapter-1.0.1 .github/workflows/nightly-unit-tests.yaml
activerecord-spanner-adapter-1.0.0 .github/workflows/nightly-unit-tests.yaml
activerecord-spanner-adapter-0.7.0 .github/workflows/nightly-unit-tests.yaml
activerecord-spanner-adapter-0.6.0 .github/workflows/nightly-unit-tests.yaml
activerecord-spanner-adapter-0.5.0 .github/workflows/nightly-unit-tests.yaml