-
Notifications
You must be signed in to change notification settings - Fork 495
54 lines (47 loc) · 1.13 KB
/
checks.yaml
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
---
name: Checks
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
rubocop_checks:
runs-on: ubuntu-20.04
name: RuboCop
steps:
- name: Checkout current PR
uses: actions/checkout@v4
- name: Rubocop checks
uses: ruby/setup-ruby@v1
with:
ruby-version: '2.7'
- run: bundle install --jobs 3 --retry 3
- run: bundle exec rubocop --parallel
rtc:
runs-on: ubuntu-20.04
name: RuboCop TODO
steps:
- uses: actions/checkout@v4
- uses: gimmyxd/[email protected]
env:
RTC_TOKEN: ${{ secrets.RTC_TOKEN }}
UPDATE_PR: false
# forces the job to fail if there are any new offences
FORCE_ERROR_EXIT: true
commit_checks:
runs-on: ubuntu-20.04
name: commit message
steps:
- name: Checkout current PR
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Commit message checks
uses: ruby/setup-ruby@v1
with:
ruby-version: '2.7'
- run: bundle install --jobs 3 --retry 3
- run: bundle exec rake commits