Skip to content

Commit 93cf3aa

Browse files
committed
ci update
1 parent 5c3590d commit 93cf3aa

File tree

2 files changed

+40
-38
lines changed

2 files changed

+40
-38
lines changed

.github/workflows/ci.yml

Lines changed: 37 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -2,54 +2,53 @@ name: CI
22

33
on:
44
push:
5-
branches: [ main ]
5+
branches: [main]
66
pull_request:
7-
branches: [ main ]
7+
branches: [main]
88

99
jobs:
1010
test:
1111
runs-on: ubuntu-latest
1212
strategy:
1313
matrix:
14-
ruby-version: ['3.0', '3.1', '3.2', '3.3']
15-
14+
ruby-version: ["3.3"]
15+
1616
steps:
17-
- uses: actions/checkout@v4
18-
19-
- name: Set up Ruby
20-
uses: ruby/setup-ruby@v1
21-
with:
22-
ruby-version: ${{ matrix.ruby-version }}
23-
bundler-cache: true
24-
25-
- name: Run tests
26-
run: bundle exec rspec
27-
28-
- name: Run RuboCop
29-
run: bundle exec rubocop
30-
31-
- name: Run Sorbet type checker
32-
run: bundle exec srb tc
17+
- uses: actions/checkout@v4
18+
19+
- name: Set up Ruby
20+
uses: ruby/setup-ruby@v1
21+
with:
22+
ruby-version: ${{ matrix.ruby-version }}
23+
bundler-cache: true
24+
25+
- name: Run tests
26+
run: bundle exec rspec
27+
28+
- name: Run RuboCop
29+
run: bundle exec rubocop
30+
31+
- name: Run Sorbet type checker
32+
run: bundle exec srb tc
3333

3434
coverage:
3535
runs-on: ubuntu-latest
3636
steps:
37-
- uses: actions/checkout@v4
38-
39-
- name: Set up Ruby
40-
uses: ruby/setup-ruby@v1
41-
with:
42-
ruby-version: '3.3'
43-
bundler-cache: true
44-
45-
- name: Run tests with coverage
46-
run: bundle exec rspec
47-
env:
48-
COVERAGE: true
49-
50-
- name: Upload coverage to Codecov
51-
uses: codecov/codecov-action@v3
52-
with:
53-
files: ./coverage/coverage.xml
54-
fail_ci_if_error: false
37+
- uses: actions/checkout@v4
38+
39+
- name: Set up Ruby
40+
uses: ruby/setup-ruby@v1
41+
with:
42+
ruby-version: "3.3"
43+
bundler-cache: true
44+
45+
- name: Run tests with coverage
46+
run: bundle exec rspec
47+
env:
48+
COVERAGE: true
5549

50+
- name: Upload coverage to Codecov
51+
uses: codecov/codecov-action@v3
52+
with:
53+
files: ./coverage/coverage.xml
54+
fail_ci_if_error: false

Gemfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
source 'https://rubygems.org'
44

5+
# Ensure Bundler uses the project's Ruby version
6+
ruby File.read(File.join(__dir__, '.ruby-version')).strip
7+
58
# Specify your gem's dependencies in zaxcel.gemspec
69
gemspec
710

0 commit comments

Comments
 (0)