Skip to content

Commit 8eba2b6

Browse files
committed
Update CI and rake task definitions
1 parent c1ae26e commit 8eba2b6

5 files changed

Lines changed: 77 additions & 28 deletions

File tree

.github/workflows/main.yml

Lines changed: 0 additions & 27 deletions
This file was deleted.

.github/workflows/rspec.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: RSpec
2+
3+
on:
4+
pull_request: {}
5+
push:
6+
branches:
7+
- master
8+
9+
jobs:
10+
build:
11+
name: RSpec with Ruby ${{ matrix.ruby }}
12+
runs-on: ubuntu-latest
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
ruby:
17+
- '2.7'
18+
- '3.0'
19+
- '3.1'
20+
- '3.2'
21+
- '3.3'
22+
- '3.4'
23+
- '4.0'
24+
25+
steps:
26+
- uses: actions/checkout@v6
27+
- uses: ruby/setup-ruby@v1
28+
with:
29+
ruby-version: ${{ matrix.ruby }}
30+
bundler-cache: true
31+
32+
- run: bundle exec rspec

.github/workflows/rubocop.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: RuboCop
2+
3+
on:
4+
pull_request: {}
5+
push:
6+
branches:
7+
- master
8+
9+
jobs:
10+
build:
11+
name: RuboCop
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v6
15+
- uses: ruby/setup-ruby@v1
16+
with:
17+
ruby-version: 4.0
18+
bundler-cache: true
19+
20+
- run: bundle exec rubocop

.github/workflows/steep.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Steep
2+
3+
on:
4+
pull_request: {}
5+
push:
6+
branches:
7+
- master
8+
9+
jobs:
10+
build:
11+
name: Steep
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v6
15+
- uses: ruby/setup-ruby@v1
16+
with:
17+
ruby-version: 3.0
18+
bundler-cache: true
19+
20+
- run: bundle exec steep

Rakefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
# frozen_string_literal: true
22

33
require "bundler/gem_tasks"
4+
require "rspec/core/rake_task"
45
require "rubocop/rake_task"
6+
require "steep/rake_task"
57

8+
RSpec::Core::RakeTask.new(:rspec)
69
RuboCop::RakeTask.new
10+
Steep::RakeTask.new
711

8-
task default: :rubocop
12+
task default: %i[rubocop steep rspec]

0 commit comments

Comments
 (0)