Skip to content

Merge pull request #71 from riboseinc/ribose-jeffreylau-36-dot #78

Merge pull request #71 from riboseinc/ribose-jeffreylau-36-dot

Merge pull request #71 from riboseinc/ribose-jeffreylau-36-dot #78

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