Skip to content

Commit e4b4443

Browse files
committed
add testing pipeline
1 parent 2edbead commit e4b4443

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

.github/workflows/testing.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Testing
2+
on: [push, pull_request]
3+
jobs:
4+
rubocop:
5+
name: Rubocop
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@v4
9+
- name: Setup Ruby
10+
uses: ruby/setup-ruby@v1
11+
with:
12+
ruby-version: "3.3"
13+
bundler-cache: true
14+
- name: Run Rubocop
15+
run: bundle exec standardrb
16+
17+
tests:
18+
name: Tests (Ruby ${{ matrix.ruby }})
19+
runs-on: ubuntu-latest
20+
strategy:
21+
fail-fast: false
22+
matrix:
23+
ruby:
24+
- "3.1"
25+
- "3.2"
26+
- "3.3"
27+
- "3.4"
28+
steps:
29+
- uses: actions/checkout@v4
30+
- name: Setup Ruby ${{ matrix.ruby }}
31+
uses: ruby/setup-ruby@v1
32+
with:
33+
ruby-version: ${{ matrix.ruby }}
34+
bundler-cache: true
35+
- name: Run tests
36+
run: bundle exec rake test

0 commit comments

Comments
 (0)