Sha256: e00f318221a8b21b6c2780de17d085261bc069d28f05e4c34ed8a2d5c288a3a5

Contents?: true

Size: 1.19 KB

Versions: 1

Compression:

Stored size: 1.19 KB

Contents

name: Tests

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

jobs:
  build:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        ruby: [ '3.0', '3.1', '3.2' ]
    env:
      CODECOV_UPLOAD_TAG: ${{ matrix.ruby }}
    name: Ruby ${{ matrix.ruby }}
    steps:
      - uses: actions/checkout@v3
      - 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:
          COVERAGE: true
          RUBYOPT: "-W:deprecated"
          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: Upload coverage to Codecov
        uses: codecov/codecov-action@v3
        with:
          env_vars: CODECOV_UPLOAD_TAG
          fail_ci_if_error: true
          token: ${{ secrets.CODECOV_TOKEN }}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
paysafe-0.15.0 .github/workflows/ci.yml