-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (39 loc) · 1.11 KB
/
main.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
name: Ruby
on: [push]
jobs:
rspec:
runs-on: ubuntu-latest
name: Run rspec
permissions: write-all
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.2'
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Run tests
run: bundle exec rspec
- name: Print coverages
uses: 5monkeys/cobertura-action@v14
with:
path: coverage/coverage.xml
minimum_coverage: 65 # TODO: change to 100% after tracing covered
fail_below_threshold: true
show_line: true
show_missing: true
link_missing_lines: true
rubocop:
runs-on: ubuntu-latest
name: Run rubocop
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.2'
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Run RuboCop
run: bundle exec rubocop