-
Notifications
You must be signed in to change notification settings - Fork 1
53 lines (49 loc) · 1.27 KB
/
ci.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
name: Continuous Integration
on: [push]
jobs:
setup:
name: Setup
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
tests:
name: Tests
needs: setup
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- run: bundle exec rails yarn:install
- run: bundle exec rails test
- uses: aki77/simplecov-report-action@v1
name: Code coverage checker
with:
failedThreshold: 50
token: ${{ github.token }}
if: ${{ always() }}
rubocop:
name: RuboCop
needs: setup
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- run: |
git diff origin/master... --name-only --diff-filter=AM | \
xargs bundle exec rubocop \
--parallel \
--fail-level convention \
--display-only-fail-level-offenses \
--display-style-guide \
--force-exclusion \
--format progress \
--format github