Test in container #18
Workflow file for this run
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: | |
workflow_call: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
container: | |
image: ruby:${{ matrix.ruby_version }} | |
name: Test ${{ matrix.ruby_version }} | |
strategy: | |
matrix: | |
ruby_version: | |
- '3.3' | |
- '3.2' | |
- '3.1' | |
- '3.0' | |
- '2.7' | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Ruby version | |
run: ruby -v | |
- name: Gem version | |
run: gem -v | |
- name: Bundler version | |
run: bundle -v | |
- name: Install dependencies | |
run: bundle install | |
- name: Run tests | |
run: bundle exec rake spec |