forked from joshmfrankel/simplecov-check-action
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (30 loc) · 770 Bytes
/
testing.yml
File metadata and controls
35 lines (30 loc) · 770 Bytes
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
# We can dogfood the Github action but using it within our own Github action
# for this repository
name: Testing
on:
pull_request:
branches:
- '*'
push:
branches:
- main
jobs:
rspec:
permissions: write-all
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
bundler: default
bundler-cache: true
- name: Run tests
run: |
bundle exec rspec specs/
# Using the current repo to perform coverage analysis
- uses: joshmfrankel/simplecov-check-action@main
with:
minimum_suite_coverage: 85
minimum_file_coverage: 70
github_token: ${{ secrets.GITHUB_TOKEN }}