Skip to content

Commit d0083f6

Browse files
Add CI workflow for tests and linter
1 parent 7833390 commit d0083f6

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

.github/workflows/ruby.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Tests and linter
2+
3+
on:
4+
push:
5+
6+
permissions:
7+
contents: read
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
ruby-version: ['3.4', '4.0']
15+
16+
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 Linter
29+
run: bundle exec rubocop

0 commit comments

Comments
 (0)