Put ls-lint and pre-commit in separate workflow files

Standardizes all workflows into separate files.

Minor clean up of workflow name and add a docs link
This commit is contained in:
John Bampton
2025-12-07 09:47:59 +10:00
parent c136a476ee
commit 9835bf8473
2 changed files with 18 additions and 9 deletions
+17
View File
@@ -0,0 +1,17 @@
# https://github.com/loeffel-io/ls-lint
name: Lint
on: [pull_request]
permissions:
contents: read
jobs:
ls-lint:
name: Run ls-lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: ls-lint/action@v2.3.1
with:
config: .github/linters/.ls-lint.yml
@@ -1,5 +1,5 @@
# https://pre-commit.com/
name: Lint
name: pre-commit
on: [pull_request]
@@ -27,11 +27,3 @@ jobs:
run: pre-commit run --color=always --all-files
- name: Run manual pre-commit hooks
run: pre-commit run --color=always --all-files --hook-stage manual
ls-lint:
name: Run ls-lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: ls-lint/action@v2.3.1
with:
config: .github/linters/.ls-lint.yml