-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (31 loc) · 799 Bytes
/
CI.yml
File metadata and controls
35 lines (31 loc) · 799 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
35
name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
ruby: [4.0.0, 3.4.8, 3.3.9, 3.2.8, 3.1.7]
name: CI Ruby ${{ matrix.ruby }}
steps:
- name: Checkout Code
uses: actions/checkout@v6
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: Install Gems
run: bundle install
- name: RSpec
run: bundle exec rspec
- name: Standard
run: bundle exec standardrb
- name: Codacy Coverage
if: ${{ matrix.ruby == '3.4.8' }}
uses: codacy/codacy-coverage-reporter-action@v1
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}