Skip to content

Add Pay v10+ support, comprehensive test suite, and critical bugfixes #1

Add Pay v10+ support, comprehensive test suite, and critical bugfixes

Add Pay v10+ support, comprehensive test suite, and critical bugfixes #1

Workflow file for this run

name: Tests
on:
pull_request:
paths-ignore:
- "README.md"
- "CHANGELOG.md"
- "LICENSE.txt"
- "*.md"
push:
branches:
- main
paths-ignore:
- "README.md"
- "CHANGELOG.md"
- "LICENSE.txt"
- "*.md"
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby_version: ["3.2", "3.3", "3.4"]
gemfile:
- Gemfile
- gemfiles/pay_7.3.gemfile
- gemfiles/pay_8.3.gemfile
- gemfiles/pay_9.0.gemfile
- gemfiles/pay_10.0.gemfile
- gemfiles/pay_11.0.gemfile
env:
BUNDLE_GEMFILE: ${{ github.workspace }}/${{ matrix.gemfile }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Ruby ${{ matrix.ruby_version }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby_version }}
bundler-cache: true
- name: Run tests
run: bundle exec rake test
- name: Upload test results
if: failure()
uses: actions/upload-artifact@v4
with:
name: test-results-ruby-${{ matrix.ruby_version }}-${{ matrix.gemfile }}
path: test/reports/
retention-days: 7