-
Notifications
You must be signed in to change notification settings - Fork 11
44 lines (41 loc) · 1.1 KB
/
gem-test.yml
File metadata and controls
44 lines (41 loc) · 1.1 KB
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
name: Run tests
on:
push:
branches-ignore: [ release ]
pull_request:
branches: [ master release ]
jobs:
build:
name: Build + Test
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
# Due to https://github.com/actions/runner/issues/849, we have to use quotes for '3.0'
ruby:
- 2.7
- '3.0'
- 3.1
- head
- truffleruby
- truffleruby-head
# - jruby
# - jruby-head
runs-on: ${{ matrix.os }}
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v3
- name: Setup Ruby versions
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Run tests
run: CI=true bundle exec rspec
- name: Upload report
run: |
mv ./coverage/coverage.xml cobertura.xml
bash <(curl -Ls https://coverage.codacy.com/get.sh) report
env:
CODACY_PROJECT_TOKEN: ${{secrets.CODACY_PROJECT_TOKEN}}