-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (31 loc) · 1.09 KB
/
integrity_test.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
name: Test integrity
on:
- push
- pull_request
- workflow_dispatch
- workflow_call
jobs:
rubocop_integrity:
runs-on: ubuntu-latest
timeout-minutes: 3
if: github.repository == 'riboseinc/oss-guides'
steps:
- name: Check out
uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.1"
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Recompile the style book
run: bundle exec rake build:rubocop
- name: Ensure no differences
run: |
if [ ! -z "$(git status --short)" ]; then
echo "--------------------------------------------------"
echo " Style book is not recompiled "
echo " ('bundle exec rake build:rubocop' was not run) "
echo " or compiled files have been edited "
echo " instead of source ones "
echo "--------------------------------------------------"
fi >&2