-
Notifications
You must be signed in to change notification settings - Fork 139
35 lines (31 loc) · 970 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
35
name: build
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
test:
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.ruby-version == 'head' }}
strategy:
matrix:
ruby-version: ['3.1', '3.2', '3.3', 'head']
steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Install apt packages
run: sudo apt update && sudo apt install -yy grep binutils-multiarch
- name: Run tests
run: bundle exec rake
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
- name: Publish code coverage
if: ${{ success() && env.CC_TEST_REPORTER_ID }}
uses: paambaati/[email protected]
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}