Skip to content

Commit d0ea19f

Browse files
committed
Add ci
1 parent b788fd3 commit d0ea19f

File tree

4 files changed

+61
-0
lines changed

4 files changed

+61
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Test and coverage
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v6
10+
with:
11+
fetch-depth: 2
12+
- uses: actions/setup-ruby@v1
13+
with:
14+
ruby-version: '3.3'
15+
- name: Install Ruby dependencies
16+
run: bundle update --bundler && bundle install
17+
- name: Install shunit2
18+
run: sudo apt install -y shunit2
19+
- name: Run script
20+
run: bashcov test/test_modified_branch_files_test.sh && bashcov test/open_coverage_test.sh
21+
- name: Upload reports to Codecov
22+
uses: codecov/codecov-action@v2

.simplecov

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
require 'simplecov'
2+
require 'simplecov-cobertura'
3+
4+
SimpleCov.formatter = SimpleCov::Formatter::CoberturaFormatter

Gemfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# frozen_string_literal: true
2+
3+
source 'https://rubygems.org'
4+
5+
gem 'bashcov'
6+
gem 'simplecov'
7+
gem 'simplecov-cobertura'

Gemfile.lock

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
GEM
2+
remote: https://rubygems.org/
3+
specs:
4+
bashcov (3.2.0)
5+
simplecov (~> 0.21)
6+
docile (1.4.1)
7+
rexml (3.4.4)
8+
simplecov (0.22.0)
9+
docile (~> 1.1)
10+
simplecov-html (~> 0.11)
11+
simplecov_json_formatter (~> 0.1)
12+
simplecov-cobertura (3.1.0)
13+
rexml
14+
simplecov (~> 0.19)
15+
simplecov-html (0.13.2)
16+
simplecov_json_formatter (0.1.4)
17+
18+
PLATFORMS
19+
arm64-darwin-24
20+
ruby
21+
22+
DEPENDENCIES
23+
bashcov
24+
simplecov
25+
simplecov-cobertura
26+
27+
BUNDLED WITH
28+
4.0.1

0 commit comments

Comments
 (0)