Sha256: 2bc2ff688371aac1bcbd6f8c686e8bc3d31d01598feb61a0c83f35e3bf63e387

Contents?: true

Size: 1.28 KB

Versions: 4

Compression:

Stored size: 1.28 KB

Contents

on:
  push:
    branches:
      - main
  pull_request:
name: acceptance tests on emulator
jobs:
  test:
    runs-on: ubuntu-latest

    services:
      emulator:
        image: gcr.io/cloud-spanner-emulator/emulator:latest
        ports:
          - 9010:9010
          - 9020:9020

    strategy:
      max-parallel: 4
      matrix:
        ruby: ["2.7", "3.0", "3.1", "3.2"]
        ar: ["~> 6.0.6", "~> 6.1.7", "~> 7.0.4", "~> 7.1.0"]
        # Exclude combinations that are not supported.
        exclude:
          - ruby: "3.0"
            ar: "~> 6.0.6"
          - ruby: "3.1"
            ar: "~> 6.0.6"
          - ruby: "3.2"
            ar: "~> 6.0.6"
    env:
      AR_VERSION: ${{ matrix.ar }}
    steps:
    - uses: actions/checkout@v4
    - name: Set up Ruby
    # To automatically get bug fixes and new Ruby versions for ruby/setup-ruby
    # (see https://github.com/ruby/setup-ruby#versioning):
      uses: ruby/setup-ruby@v1
      with:
        bundler-cache: false
        ruby-version: ${{ matrix.ruby }}
    - name: Install dependencies
      run: bundle install
    - name: Run acceptance tests on emulator
      run: bundle exec rake acceptance
      env:
        SPANNER_EMULATOR_HOST: localhost:9010
        SPANNER_TEST_PROJECT: test-project
        SPANNER_TEST_INSTANCE: test-instance

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
activerecord-spanner-adapter-1.6.3 .github/workflows/acceptance-tests-on-emulator.yaml
activerecord-spanner-adapter-1.6.2 .github/workflows/acceptance-tests-on-emulator.yaml
activerecord-spanner-adapter-1.6.1 .github/workflows/acceptance-tests-on-emulator.yaml
activerecord-spanner-adapter-1.6.0 .github/workflows/acceptance-tests-on-emulator.yaml