diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 74f0dca..30be11c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,8 +1,6 @@ name: CI -on: - pull_request: - branches: ["**"] +on: [pull_request] permissions: contents: read diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml deleted file mode 100644 index 78e3996..0000000 --- a/.github/workflows/linter.yml +++ /dev/null @@ -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 diff --git a/.github/workflows/rubocop.yml b/.github/workflows/rubocop.yml new file mode 100644 index 0000000..6717063 --- /dev/null +++ b/.github/workflows/rubocop.yml @@ -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