-
Notifications
You must be signed in to change notification settings - Fork 70
34 lines (30 loc) · 945 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
34
name: build
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
test:
runs-on: ${{ matrix.os }}-latest
strategy:
matrix:
os: [ubuntu]
ruby-version: ['2.6', '2.7', head]
steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
- name: Install packages
run: sudo apt update && sudo apt install -yy gcc
- name: Bundle install
run: sudo env "PATH=$PATH" bundle install --jobs=3 --retry=3 --path=${BUNDLE_PATH:-vendor/bundle}
- name: Run tests
run: sudo env "PATH=$PATH" CI=1 CC_TEST_REPORTER_ID=1 bundle exec rake
- name: Publish code coverage
if: ${{ success() && runner.os == 'Linux' && env.CC_TEST_REPORTER_ID }}
uses: paambaati/[email protected]
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}