Skip to content

Update actions/cache action to v5 #41

Update actions/cache action to v5

Update actions/cache action to v5 #41

Workflow file for this run

# Linting workflow
#
# This workflow runs linting tools that don't require any external dependencies
# like Kafka. These checks are fast and should block PRs if they fail.
#
# YARD-LINT:
# - Validates YARD documentation syntax and completeness
# - Ensures all public methods have proper parameter and return documentation
# - Catches documentation errors before they reach the codebase
name: Linting
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
pull_request:
branches: [ master ]
push:
branches: [ master ]
permissions:
contents: read
env:
BUNDLE_RETRY: 6
BUNDLE_JOBS: 4
jobs:
yard_lint:
name: YARD Documentation Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- name: Set up Ruby
uses: ruby/setup-ruby@d697be2f83c6234b20877c3b5eac7a7f342f0d0c # v1.269.0
with:
ruby-version: '3.4.7'
bundler-cache: true
- name: Run yard-lint
run: bundle exec yard-lint lib
ci-success:
name: Linting Success
runs-on: ubuntu-latest
if: always()
needs:
- yard_lint
steps:
- name: Check all jobs passed
if: |
contains(needs.*.result, 'failure') ||
contains(needs.*.result, 'cancelled') ||
contains(needs.*.result, 'skipped')
run: exit 1
- run: echo "All linting checks passed!"