-
Notifications
You must be signed in to change notification settings - Fork 109
45 lines (40 loc) · 1.17 KB
/
ruby-tests.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
34
35
36
37
38
39
40
41
42
43
44
45
name: Ruby Tests
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
test:
name: Specs - Ruby ${{ matrix.ruby-version }} ${{matrix.gemfile}}
runs-on: ubuntu-latest
env:
CC_TEST_REPORTER_ID: 8d1cf5f9b65f4b22efbdbb85b82f31ecdf132ea9e7f6728cd288fb05e9fa549a
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile
strategy:
matrix:
gemfile:
- faraday-1
- faraday-2
ruby-version:
- "3.3"
- "3.2"
- "3.1"
- jruby
- truffleruby
steps:
- uses: actions/checkout@v3
- name: Set up Ruby ${{ matrix.ruby-version }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
- name: Set environment
run: echo "COVERAGE=true" >> "$GITHUB_ENV"
if: matrix.ruby-version == '3.3' && matrix.gemfile == 'faraday-2'
- name: Install dependencies
run: bundle install
- name: Run tests
run: bundle exec rake test
- name: Upload Coverage
uses: paambaati/[email protected]
if: matrix.ruby-version == '3.3' && matrix.gemfile == 'faraday-2'