-
Notifications
You must be signed in to change notification settings - Fork 2
33 lines (28 loc) · 781 Bytes
/
ruby.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
name: Ruby
on:
push:
branches: [ main ]
pull_request:
types: [ opened, edited, synchronize ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby-version: [ 3.1, "3.0" ]
name: Ruby ${{ matrix.ruby-version }}
steps:
- name: start Redis
run: docker run --name redis --publish 6379:6379 --detach redis:3
- name: clone ${{ github.repository }}
uses: actions/checkout@v4
- name: setup Ruby ${{ matrix.ruby-version }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
- name: run tests
run: bundle exec rspec
- name: upload code coverage
uses: codecov/codecov-action@v4