Skip to content
This repository was archived by the owner on Jul 15, 2025. It is now read-only.

LIBAAEC-56 Add dependabot.yml to trigger dependabot scans weekly #78

LIBAAEC-56 Add dependabot.yml to trigger dependabot scans weekly

LIBAAEC-56 Add dependabot.yml to trigger dependabot scans weekly #78

Workflow file for this run

name: Ensure Rubocop Passes
on:
pull_request:
types: [opened, synchronize, reopened]
jobs:
rubocop:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Ruby and install gems
uses: ./.github/actions/setup-ruby-deps
- name: Restore Rubocop Cache
uses: actions/cache@v3
with:
path: .rubocop_cache
key: rubocop-cache-${{ runner.os }}-${{ hashFiles('**/*.rb') }}
restore-keys: |
rubocop-cache-${{ runner.os }}-
- name: Run Rubocop and Save Output
run: |
mkdir -p tmp
bundle exec rubocop --format offenses --out tmp/rubocop-output.txt
continue-on-error: true
shell: bash
- name: Analyze Rubocop Output
run: |
if grep -q 'Offense:' tmp/rubocop-output.txt; then
echo "Rubocop found offenses."
exit 1
else
echo "Rubocop passed without offenses."
fi
shell: bash
- name: Upload Rubocop Report
uses: actions/upload-artifact@v4
with:
name: rubocop-report
path: tmp/rubocop-output.txt
- name: Save Rubocop Cache
uses: actions/cache@v3
with:
path: .rubocop_cache
key: rubocop-cache-${{ runner.os }}-${{ hashFiles('**/*.rb') }}