Pv188427863 add reports dockerfile #426
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: pull request checks | |
on: | |
pull_request: | |
concurrency: | |
group: checks-${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
rubocop: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
bundler-cache: true | |
rubygems: 3.3.26 | |
- name: Config git and fetch comparison branch | |
run: | | |
git config diff.renameLimit 800 | |
git fetch --no-tags --depth=1 origin ${{ github.base_ref }} | |
- name: Run rubocop | |
run: | | |
bundle exec rubocop-git origin/${{ github.base_ref }} | tee results.txt | |
- name: Evaluate results | |
run: | | |
cat results.txt | grep --silent "no offenses detected" |