chore: upgrade from bundler 1 to bundler 2 (#33) #21
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
permissions: | |
contents: read | |
# limit concurrency to work around a problem with the sessions | |
concurrency: | |
group: jaytest-instance | |
cancel-in-progress: false | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
# one at a time because concurrent runs invalidate each other | |
max-parallel: 1 | |
matrix: | |
# test with multiple versions of ruby, must include the version in .ruby-version | |
ruby-version: ['2.5.9', '2.7.8'] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install libcurl dev headers | |
# `curb` gem dependency | |
run: sudo apt-get install libcurl4-openssl-dev | |
- name: Set up Ruby ${{ matrix.ruby-version }} | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby-version }} | |
bundler-cache: true # runs 'bundle install' and caches installed gems automatically | |
- name: Run tests | |
run: bundle exec rake |