-
-
Notifications
You must be signed in to change notification settings - Fork 531
34 lines (28 loc) · 805 Bytes
/
exercise-tests.yml
File metadata and controls
34 lines (28 loc) · 805 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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@de0fac2e4500dabe0009e67214ff5f5447ce83dd
- name: Set up Ruby
uses: ruby/setup-ruby@3ff19f5e2baf30647122352b96108b1fbe250c64
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