-
Notifications
You must be signed in to change notification settings - Fork 14
23 lines (23 loc) · 718 Bytes
/
ci.yml
File metadata and controls
23 lines (23 loc) · 718 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
on: [push, pull_request]
jobs:
test:
strategy:
matrix:
ruby: [3.1, 3.2, 3.3, 3.4]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
ruby-version: ${{ matrix.ruby }}
- name: Test Ruby ${{ matrix.ruby }}
run: bundle exec rake
if: matrix.ruby != '3.1'
- name: Test and publish coverage for Ruby ${{ matrix.ruby }}
uses: paambaati/codeclimate-action@v9.0.0
env:
CC_TEST_REPORTER_ID: 8bc2d8e54331569aeb442094c21cb64a58d6efa0670f65ff00d9ae887f63c0b4
with:
coverageCommand: bundle exec rake
if: matrix.ruby == '3.1'