Skip to content

[New practice exercise] Gilded Rose (#1586) #1103

[New practice exercise] Gilded Rose (#1586)

[New practice exercise] Gilded Rose (#1586) #1103

name: Exercise tests
on:
workflow_dispatch:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
name: Ruby ${{ matrix.ruby-version }} - ${{ matrix.os }} - ${{ github.event_name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-20.04
ruby-version: [3.0, 3.1, 3.2]
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@a05e47355e80e57b9a67566a813648fa67d92011
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
- name: Lint
run: bundle exec rubocop -fs --except Metrics --config .rubocop.yml
- name: Test exercises
run: bundle exec rake test