Skip to content

Commit c439a3f

Browse files
committed
Store specs coverage results to the artifacts
1 parent 8e8109d commit c439a3f

4 files changed

Lines changed: 22 additions & 3 deletions

File tree

.github/workflows/linters.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,18 @@ jobs:
1818
with:
1919
ruby-version: '2.7'
2020
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
21-
- name: Install Rubocop
21+
- name: Install RuboCop
2222
run: gem install rubocop rubocop-rspec
23-
- name: Check code
23+
- name: Run RuboCop
2424
run: rubocop
25+
# id: rubocop-check
26+
# run: echo "::set-output name=results::$(rubocop)"
27+
28+
# - name: View context attributes
29+
# uses: actions/github-script@v4
30+
# with:
31+
# script: console.log("${{steps.rubocop-check.outputs.results}}")
32+
# - name: View context attributes 2
33+
# uses: actions/github-script@v4
34+
# with:
35+
# script: console.log(JSON.stringify(${{steps}}))

.github/workflows/postgres.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,10 @@ jobs:
4646
run: bundle exec rails db:setup
4747
- name: Run tests
4848
run: bundle exec rake
49+
50+
# - name: Upload coverage results
51+
# uses: actions/upload-artifact@master
52+
# if: always()
53+
# with:
54+
# name: coverage-report
55+
# path: coverage/index.html

.github/workflows/tmp

Whitespace-only changes.

spec/rails_helper.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
require 'simplecov'
44
SimpleCov.start :rails do
55
filters.clear
6-
add_filter %r{^/spec/}
76
add_filter %r{^/lib/active_storage_db/version.rb}
7+
add_filter %r{^/spec/}
8+
add_filter %r{^/vendor/}
89
end
910

1011
require 'spec_helper'

0 commit comments

Comments
 (0)