Skip to content

Commit

Permalink
Try ruby codecov
Browse files Browse the repository at this point in the history
    * .github/workflows/linux.yml:
    * ridlbe/c++11/require.rb:
  • Loading branch information
jwillemsen committed Oct 23, 2024
1 parent 4ce6321 commit 3e7bf6d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,10 @@ jobs:
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
if: matrix.feature == 'CodeQL'
- name: Install necessary ruby gems
run: |
gem install simplecov
if: matrix.feature == 'Codecov'
- uses: codecov/codecov-action@v4
with:
fail_ci_if_error: true
Expand Down
8 changes: 8 additions & 0 deletions ridlbe/c++11/require.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@
# @copyright Copyright (c) Remedy IT Expertise BV
#--------------------------------------------------------------------

# Try to load simplecov
begin
require 'simplecov'
SimpleCov.start
rescue LoadError
end

# base modules
require 'ridlbe/c++11/config'
require 'ridlbe/c++11/visitorbase'
Expand All @@ -20,3 +27,4 @@
Dir.glob(File.join(File.dirname(__FILE__), 'writers', '*.rb')).each do |f|
require "ridlbe/c++11/writers/#{File.basename(f, '.*')}"
end

0 comments on commit 3e7bf6d

Please sign in to comment.