diff options
author | Nick Schonning <nschonni@gmail.com> | 2023-01-29 18:39:31 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-30 00:39:31 +0100 |
commit | b58bf74e35039a29ca3794ea100a19d4d07cc810 (patch) | |
tree | 7ab6f5a20298faa11e8a3ff78da443722ba2930b /.github/workflows/lint-ruby.yml | |
parent | 4917e38d94ad8dcd89069dc2eb5d544a73098010 (diff) |
Filter Superlinter to Ruby files only (#21976)
Diffstat (limited to '.github/workflows/lint-ruby.yml')
-rw-r--r-- | .github/workflows/lint-ruby.yml | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/.github/workflows/lint-ruby.yml b/.github/workflows/lint-ruby.yml new file mode 100644 index 000000000..b834e3053 --- /dev/null +++ b/.github/workflows/lint-ruby.yml @@ -0,0 +1,41 @@ +name: Ruby Linting +on: + push: + branches-ignore: + - 'dependabot/**' + paths: + - 'Gemfile*' + - '.rubocop.yml' + - '**/*.rb' + - '**/*.rake' + - '.github/workflows/lint-ruby.yml' + + pull_request: + paths: + - 'Gemfile*' + - '.rubocop.yml' + - '**/*.rb' + - '**/*.rake' + - '.github/workflows/lint-ruby.yml' + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - name: Checkout Code + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Set-up RuboCop Problem Mathcher + uses: r7kamura/rubocop-problem-matchers-action@v1 + + - name: Run rubocop + uses: github/super-linter@v4 + env: + DEFAULT_BRANCH: main + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + LINTER_RULES_PATH: . + RUBY_CONFIG_FILE: .rubocop.yml + VALIDATE_ALL_CODEBASE: false + VALIDATE_RUBY: true |