Skip to content

Drop Support Ruby 2.7 #23

Drop Support Ruby 2.7

Drop Support Ruby 2.7 #23

Workflow file for this run

name: "RSpec"
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
rspec:
name: RSpec
runs-on: ubuntu-latest
env:
api-dir: ./
strategy:
fail-fast: false
matrix:
versions: [ '3.0', '3.1', '3.2', '3.3' ]
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup libraries
run: |
sudo apt update
sudo apt install -y libsodium-dev
- name: Setup Ruby ${{ matrix.versions }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.versions }}
bundler-cache: true
- name: Run bundle install (Ruby ${{ matrix.versions }})
working-directory: ${{env.api-dir}}
run: |
gem install bundler
bundle install --jobs 4 --retry 3
- name: RSpec spec (Ruby ${{ matrix.versions }})
working-directory: ${{env.api-dir}}
run: bundle exec rspec spec --format progress --format RspecJunitFormatter -o ~/rspec/rspec.xml
- name: Save test results (Ruby ${{ matrix.versions }})
uses: actions/upload-artifact@v3
with:
name: rspec_results_${{ matrix.versions }}
path: ~/rspec/rspec.xml
retention-days: 30