Skip to content

Commit 0f2dadf

Browse files
authored
Setup testing around ruby versions
This was a contribution from @datachomp, thanks!
1 parent d519b3a commit 0f2dadf

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

.github/workflows/test.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
workflow_dispatch: # for manual runs
9+
schedule:
10+
- cron: '5 18 * * 1' # for scheduled runs
11+
12+
jobs:
13+
test:
14+
runs-on: ubuntu-latest
15+
timeout-minutes: 2
16+
strategy:
17+
matrix:
18+
ruby-version: ['3.2', '3.3', '3.4']
19+
20+
steps:
21+
- uses: actions/checkout@v4
22+
- name: Set up Ruby ${{ matrix.ruby-version }}
23+
# https://github.com/ruby/setup-ruby/blob/master/action.yml
24+
uses: ruby/setup-ruby@v1
25+
with:
26+
ruby-version: ${{ matrix.ruby-version }}
27+
bundler: default
28+
bundler-cache: true
29+
cache-version: 0 # cache buster if necessary
30+
31+
- name: Run tests
32+
env:
33+
RACK_ENV: test
34+
run: bundle exec rake test

0 commit comments

Comments
 (0)