name: Tests

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

jobs:
  build:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        ruby: [ '2.5', '2.6', '2.7' ]
    name: Ruby ${{ matrix.ruby }}
    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: Run Tests
      env:
        PAYSAFE_ACCOUNT_NUMBER: test
        PAYSAFE_API_KEY: test
        PAYSAFE_API_SECRET: test
        PAYSAFE_SUT_API_KEY: test
        PAYSAFE_SUT_API_SECRET: test
        PAYSAFE_UNITY_API_KEY: test
        PAYSAFE_UNITY_API_SECRET: test
        PAYSAFE_UNITY_SUT_API_KEY: test
        PAYSAFE_UNITY_SUT_API_SECRET: test
      run: |
        bundle exec rake

name: Tests

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

jobs:
  build:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        ruby: [ '2.5', '2.6', '2.7', '3.0' ]
    name: Ruby ${{ matrix.ruby }}
    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: Run Tests
      env:
        PAYSAFE_ACCOUNT_NUMBER: test
        PAYSAFE_API_KEY: test
        PAYSAFE_API_SECRET: test
        PAYSAFE_SUT_API_KEY: test
        PAYSAFE_SUT_API_SECRET: test
        PAYSAFE_UNITY_API_KEY: test
        PAYSAFE_UNITY_API_SECRET: test
        PAYSAFE_UNITY_SUT_API_KEY: test
        PAYSAFE_UNITY_SUT_API_SECRET: test
      run: |
        bundle exec rake

Add Ruby 3.0 build to CI workflow
Add Ruby 3.0 build to CI workflow
