Skip to content

Commit 146b334

Browse files
committed
ci: makes coverage.yaml its own job
1 parent e837d6a commit 146b334

File tree

2 files changed

+20
-7
lines changed

2 files changed

+20
-7
lines changed

.github/workflows/coverage.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Test Coverage
2+
3+
on:
4+
workflow_call:
5+
6+
workflow_dispatch:
7+
8+
jobs:
9+
SimpleCov:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Check SimpleCov coverage
13+
uses: joshmfrankel/simplecov-check-action@main
14+
with:
15+
minimum_suite_coverage: 97
16+
minimum_file_coverage: 90
17+
github_token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/validations.yaml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,8 @@ jobs:
1010
validate_ruby:
1111
name: Ruby Tests
1212
uses: ./.github/workflows/main.yaml
13+
1314
ensure_coverage:
1415
needs: validate_ruby
15-
steps:
16-
- name: Check SimpleCov coverage
17-
uses: joshmfrankel/simplecov-check-action@main
18-
with:
19-
minimum_suite_coverage: 97
20-
minimum_file_coverage: 90
21-
github_token: ${{ secrets.GITHUB_TOKEN }}
16+
name: Check SimpleCov coverage
17+
uses: ./.github/workflows/coverage.yaml

0 commit comments

Comments
 (0)