-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
62 lines (57 loc) · 1.6 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: 'SimpleCov+ Action'
description: 'Enabling SimpleCov support for Github Actions'
author: 'Josh Frankel'
inputs:
github_token:
description: 'Github token for create checks'
required: true
check_job_name:
description: "The name of the check's job"
default: 'SimpleCov'
minimum_suite_coverage:
description: 'Minimum test suite coverage percentage'
default: 90
minimum_file_coverage:
description: 'Minimum coverage percent for every file (requres simplecov-json)'
default: 70
coverage_path:
description: 'File path to coverage results'
default: 'coverage/.last_run.json'
coverage_json_path:
description: 'File path to simplecov-json coverage results (only when using simplecov-json)'
default: 'coverage/coverage.json'
debug_mode:
description: 'Display logs for debugging'
default: false
runs:
using: 'docker'
image: 'Dockerfile'
branding:
icon: 'check-circle'
color: 'gray-dark'
# name: Testing
# on:
# pull_request:
# branches:
# - '*'
# push:
# branches:
# - dev
# jobs:
# rspec:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - name: Setup Ruby
# uses: ruby/setup-ruby@v1
# with:
# bundler: default
# bundler-cache: true
# - name: Run tests
# run: |
# bundle exec rspec spec/
# # Using the current repo to perform coverage analysis
# - uses: actions/checkout@v3
# with:
# minimum_suite_coverage: 85
# minimum_file_coverage: 70