File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2020 - uses : actions/checkout@v2
2121 - name : Run tests
2222 run : make test
23+ - name : Run tests with coverage
24+ run : make coverage
25+ - name : Upload coverage to Codecov
26+ uses : codecov/codecov-action@v4
27+ with :
28+ files : ./coverage/coverage.json
29+ fail_ci_if_error : false
30+ token : ${{ secrets.CODECOV_TOKEN }}
Original file line number Diff line number Diff line change 11![ Build Status] ( https://github.com/kwerle/ruby_language_server/actions/workflows/test.yml/badge.svg )
2+ [ ![ codecov] ( https://codecov.io/gh/kwerle/ruby_language_server/branch/master/graph/badge.svg )] ( https://codecov.io/gh/kwerle/ruby_language_server )
23# Overview
34
45https://github.com/kwerle/ruby_language_server
Original file line number Diff line number Diff line change 22
33if ENV [ 'COVERAGE' ]
44 require 'simplecov'
5+ require 'simplecov_json_formatter'
56 SimpleCov . start do
67 add_filter '/spec/'
78 add_filter '/vendor/'
9+ # Use JSON formatter for CI/Codecov integration
10+ formatter SimpleCov ::Formatter ::JSONFormatter if ENV [ 'CI' ]
811 end
912end
1013
You can’t perform that action at this time.
0 commit comments