-
Notifications
You must be signed in to change notification settings - Fork 32
49 lines (43 loc) · 1.09 KB
/
ci.yml
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
42
43
44
45
46
47
48
49
name: CI
on:
pull_request:
branches:
- "*"
push:
branches:
- main
jobs:
standard:
name: StandardRB Check Action
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.3 # Use the latest stable Ruby version for StandardRB
bundler-cache: true
- run: bundle exec standardrb --format progress
tests:
name: Tests (Ruby ${{ matrix.ruby }} - ${{ matrix.gemfile }})
strategy:
matrix:
include:
# Latest Ruby with latest Phlex
- ruby: 3.3
gemfile: gemfiles/phlex2.gemfile
# Ruby 3.2 with Phlex 1
- ruby: 3.2
gemfile: gemfiles/phlex1.gemfile
fail-fast: false
runs-on: ubuntu-latest
env:
BUNDLE_GEMFILE: ${{ matrix.gemfile }}
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Run tests
run: bundle exec rake test