-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (33 loc) · 1.08 KB
/
ruby_test.yml
File metadata and controls
40 lines (33 loc) · 1.08 KB
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
34
35
36
37
38
39
40
name: Ruby Tests
env:
TZ: Europe/London
on:
push:
pull_request:
jobs:
test:
name: Rspec
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
# Due to https://github.com/actions/runner/issues/849, we have to use quotes for '3.0'
ruby: [ "3.3", "3.4", "4.0" ]
steps:
- name: Checkout Repository
uses: sanger/.github/.github/actions/setup/checkout@master
- name: Setup Ruby ${{ matrix.ruby }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Run rspec
run: bundle exec rspec
- name: Upload coverage reports to Codecov
uses: sanger/.github/.github/actions/tests/codecov@master
with:
name: ${{ github.run_id }}_${{ github.job }}_${{ github.event_name }}_${{ matrix.ruby }}
token: ${{ secrets.CODECOV_TOKEN }}
flags: ${{ github.event_name }}
disable-search: true
files: ${{ github.workspace }}/lcov.info