-
Notifications
You must be signed in to change notification settings - Fork 1
52 lines (48 loc) · 1.31 KB
/
main.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
46
47
48
49
50
51
52
name: Ruby
on:
push:
branches:
- main
pull_request:
jobs:
build:
runs-on: ubuntu-latest
name: Ruby ${{ matrix.ruby }} - ${{ matrix.appraisal }}
strategy:
fail-fast: false
matrix:
ruby:
- '3.3.3'
- '3.2.4'
- '3.1.6'
appraisal:
- 'railties-7-sidekiq'
- 'railties-6-sidekiq'
- 'railties-7-no-sidekiq'
- 'railties-6-no-sidekiq'
- 'no-railties-no-sidekiq'
steps:
- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Install Appraisal Gems
run: bundle exec appraisal install
- name: Run the specs for Appraisal
env:
COVERAGE: true
APPRAISAL: ${{ matrix.appraisal }}
RUBY_VERSION: ${{ matrix.ruby }}
run: bundle exec appraisal ${{ matrix.appraisal }} rake spec
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
COVERAGE: true
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
files: ./coverage/${{ matrix.ruby }}-${{ matrix.appraisal }}/coverage.json
token: ${{ secrets.CODECOV_TOKEN }}
- name: List coverage directory
run: ls -R ./coverage