Sha256: 6dba0466e886306789e10810b30eeecb1674099a26d3d8b77d797abc337ec92f

Contents?: true

Size: 711 Bytes

Versions: 12

Compression:

Stored size: 711 Bytes

Contents

name: Linting

on:
  pull_request:
    paths:
      - "**/*.rb"

env:
  RAILS_ENV: test

jobs:
  rubocop:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4

      - uses: yettoapp/actions/pr-contains-files@main
        id: pr_contains_ruby
        with:
          pr_number: ${{ github.event.number }}
          pattern: ".rb$"
          github_token: ${{ secrets.GITHUB_TOKEN }}

      - name: Set up Ruby
        if: ${{ steps.pr_contains_ruby.outputs.exists == 'true' }}
        uses: yettoapp/actions/setup-languages@main
        with:
          ruby: true

      - name: Rubocop
        if: ${{ steps.pr_contains_ruby.outputs.exists == 'true' }}
        run: bundle exec rake rubocop

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
hephaestus-0.7.2 templates/.github/workflows/lint.yml
hephaestus-0.7.1 templates/.github/workflows/lint.yml
hephaestus-0.7.0 templates/.github/workflows/lint.yml
hephaestus-0.6.4 templates/.github/workflows/lint.yml
hephaestus-0.6.3 templates/.github/workflows/lint.yml
hephaestus-0.6.2 templates/.github/workflows/lint.yml
hephaestus-0.6.1 templates/.github/workflows/lint.yml
hephaestus-0.6.0 templates/.github/workflows/lint.yml
hephaestus-0.5.2 templates/.github/workflows/lint.yml
hephaestus-0.5.1 templates/.github/workflows/lint.yml
hephaestus-0.5.0 templates/.github/workflows/lint.yml
hephaestus-0.4.0 templates/.github/workflows/lint.yml