Merge pull request #5 from samsonjs/update-github-workflows

Replace Super Linter with dedicated rubocop workflow
This commit is contained in:
Sami Samhuri 2025-06-08 17:10:17 -07:00 committed by GitHub
commit a27a4128cb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 25 additions and 61 deletions

View file

@ -1,8 +1,6 @@
name: CI
on:
pull_request:
branches: ["**"]
on: [pull_request]
permissions:
contents: read

View file

@ -1,58 +0,0 @@
---
###########################
###########################
## Linter GitHub Actions ##
###########################
###########################
name: Lint Code Base
#
# Documentation:
# https://help.github.com/en/articles/workflow-syntax-for-github-actions
#
#############################
# Start the job on all push #
#############################
on:
pull_request:
branches: ["**"]
permissions:
contents: read
statuses: write
checks: write
###############
# Set the Job #
###############
jobs:
build:
# Name the Job
name: Lint Code Base
# Set the agent to run on
runs-on: ubuntu-latest
##################
# Load all steps #
##################
steps:
##########################
# Checkout the code base #
##########################
- name: Checkout Code
uses: actions/checkout@v4
with:
# Full git history is needed to get a proper list of changed files within `super-linter`
fetch-depth: 0
################################
# Run Linter against code base #
################################
- name: Lint Code Base
uses: github/super-linter@v7
env:
VALIDATE_ALL_CODEBASE: false
DEFAULT_BRANCH: main
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VALIDATE_JSCPD: false

24
.github/workflows/rubocop.yml vendored Normal file
View file

@ -0,0 +1,24 @@
name: rubocop
on: [pull_request]
permissions:
contents: read
jobs:
rubocop:
name: rubocop
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.4"
bundler-cache: true
- name: Run rubocop
run: bundle exec rubocop