-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (36 loc) · 786 Bytes
/
ruby.yml
File metadata and controls
41 lines (36 loc) · 786 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
36
37
38
39
40
41
name: Ruby CI
on:
push:
branches:
env:
CI: true
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./
strategy:
fail-fast: false
matrix:
ruby-version: [3.2, 3.3, 3.4, 4.0]
steps:
- uses: actions/checkout@v6
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
- name: Install dependencies
run: bundle install
- name: Rubocop Check
run: bundle exec rubocop
- name: Validate RBS types
run: bundle exec rake rbs
- name: Run all tests
run: bundle exec rake test
shell: bash
- name: Run example_app
run: bundle exec ruby example_app.rb
shell: bash