name: CI

on:
  push:
    branches:
    - "*"
    tags:
    - "!*"
  pull_request:
    branches:
    - "*"

jobs:
  rspec:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        ruby: [ '2.5',  '2.6', '2.7', '3.0' ]
    steps:
    - uses: actions/checkout@v2
    - name: Set up Ruby
      uses: ruby/setup-ruby@v1
      with:
        ruby-version: ${{ matrix.ruby }}
        bundler-cache: true
    - name: Run tests
      run: bundle exec rspec

  rubocop:
    name: Rubocop
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: andrewmcodes/rubocop-linter-action@v3.3.0
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

name: CI

on:
  push:
    branches:
    - "*"
    tags:
    - "!*"
  pull_request:
    branches:
    - "*"

jobs:
  rspec:
    name: RSpec
    env:
      BILLOGRAM_BASE_URI: https://sandbox.billogram.com/api/v2/
      BILLOGRAM_USERNAME: 0000-RANDOM
      BILLOGRAM_PASSWORD: 55e0cc0a4170f39641840dd4c8274f70
    runs-on: ubuntu-latest
    strategy:
      matrix:
        ruby: [ '2.5',  '2.6', '2.7', '3.0' ]
    steps:
    - uses: actions/checkout@v2
    - name: Set up Ruby
      uses: ruby/setup-ruby@v1
      with:
        ruby-version: ${{ matrix.ruby }}
        bundler-cache: true
    - name: Run tests
      run: bundle exec rspec

  rubocop:
    name: Rubocop
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: andrewmcodes/rubocop-linter-action@v3.3.0
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Set ENV variables for tests
Set ENV variables for tests
