-
Notifications
You must be signed in to change notification settings - Fork 0
82 lines (77 loc) · 1.75 KB
/
ci.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
name: CI
on:
push:
branches:
- develop
- main
pull_request:
branches:
- develop
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install
uses: ruby/setup-ruby@v1
with:
ruby-version: ruby-3
bundler-cache: true
- name: Build
run: bin/build
coverage:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install
uses: ruby/setup-ruby@v1
with:
ruby-version: ruby-3
bundler-cache: true
- name: Test
run: bundle exec rake
- name: Upload
uses: paambaati/codeclimate-action@v3.0.0
env:
CC_TEST_REPORTER_ID: cf390690a98dc04002844cd39dc93e82dad9c9f0f1f2f80b2dd148d5042ce345
with:
coverageLocations: ${{ github.workspace }}/spec/reports/coverage/coverage.xml:cobertura
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install
uses: ruby/setup-ruby@v1
with:
ruby-version: ruby-3
bundler-cache: true
- name: Lint
run: bin/lint
test:
strategy:
matrix:
os:
- macos-latest
- ubuntu-latest
ruby:
- ruby-2.6
- ruby-2.7
- ruby-3.0
- ruby-3.1
# - jruby
# - truffleruby
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Test
run: bin/rake