Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .github/workflows/check-gems.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Lint

on: [pull_request]

permissions:
contents: read

jobs:
check-gems:
name: Check gem files
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v6
with:
persist-credentials: false
- uses: ruby/setup-ruby@v1
with:
ruby-version: '3.2' # Not needed with a .ruby-version file
bundler: 'default'
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- run: bundle exec .check.rb
21 changes: 8 additions & 13 deletions .github/workflows/lint.yml → .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,19 @@
name: Lint
name: pre-commit

on: [pull_request]

permissions:
contents: read

jobs:
check-gems:
name: Check gem files
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: ruby/setup-ruby@v1
with:
ruby-version: '3.2' # Not needed with a .ruby-version file
bundler: 'default'
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- run: bundle exec .check.rb
pre-commit:
name: Run pre-commit # https://pre-commit.com/
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Checkout Code
uses: actions/checkout@v6
with:
persist-credentials: false
- uses: actions/setup-python@v6 # https://www.python.org/
with:
python-version: '3.x' # Version range or exact version of a Python version to use, using SemVer's version range syntax
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/super-linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ name: Super-Linter

on: [pull_request]

permissions:
contents: read

jobs:
build:
name: Lint Code Base
Expand All @@ -13,6 +16,7 @@ jobs:
with:
# Full git history is needed to get a proper list of changed files within `super-linter`
fetch-depth: 0
persist-credentials: false
- name: Lint Code Base
uses: super-linter/super-linter/slim@v8.5.0
env:
Expand Down