-
Notifications
You must be signed in to change notification settings - Fork 7
37 lines (33 loc) · 822 Bytes
/
Copy pathmain.yml
File metadata and controls
37 lines (33 loc) · 822 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
name: Rspec, Rubocop, RBS & Steep
on:
push:
branches:
- main
pull_request:
jobs:
build:
runs-on: ubuntu-latest
name: Ruby ${{ matrix.ruby }}
strategy:
fail-fast: false
matrix:
# all currently maintained Ruby branches, per https://www.ruby-lang.org/en/downloads/branches/
ruby:
- '3.3'
- '3.4'
- '4.0'
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Run rspec tests
run: bundle exec rspec
- name: Run rubocop
run: bundle exec rubocop
- name: Validate RBS signatures
run: bundle exec rbs validate
- name: Run steep type check
run: bundle exec steep check