Skip to content

Bump rexml from 3.2.8 to 3.3.2 (#59) #172

Bump rexml from 3.2.8 to 3.3.2 (#59)

Bump rexml from 3.2.8 to 3.3.2 (#59) #172

Workflow file for this run

name: Tests
on:
push:
branches:
- master
pull_request:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
ruby:
- '3.0'
- '3.1'
- '3.2'
- '3.3'
name: Ruby ${{ matrix.ruby }}
steps:
- uses: actions/checkout@v4
- 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: Rename coverage file by matrix run
run: mv coverage/coverage.xml coverage/coverage-ruby-${{ matrix.ruby }}.xml
- uses: actions/upload-artifact@v4
with:
name: coverage-ruby-${{ matrix.ruby }}
path: coverage
if-no-files-found: error
upload_coverage:
name: Upload Coverage
runs-on: ubuntu-latest
needs: [build]
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
path: coverage
pattern: coverage-ruby-*
merge-multiple: true
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
directory: coverage
fail_ci_if_error: true