Add templates for exercises batch 13 (#1800) #1688
This file contains hidden or 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: 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-24.04 | |
| ruby-version: [3.2, 3.3] | |
| steps: | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 | |
| - name: Set up Ruby | |
| uses: ruby/setup-ruby@0481980f17b760ef6bca5e8c55809102a0af1e5a | |
| 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 |