From 9835bf84732956a137ce1bc10ada9610af15ba2c Mon Sep 17 00:00:00 2001 From: John Bampton Date: Sun, 7 Dec 2025 09:47:59 +1000 Subject: [PATCH] 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 --- .github/workflows/ls-lint.yml | 17 +++++++++++++++++ .github/workflows/{lint.yml => pre-commit.yml} | 10 +--------- 2 files changed, 18 insertions(+), 9 deletions(-) create mode 100644 .github/workflows/ls-lint.yml rename .github/workflows/{lint.yml => pre-commit.yml} (79%) diff --git a/.github/workflows/ls-lint.yml b/.github/workflows/ls-lint.yml new file mode 100644 index 000000000..3002e2dba --- /dev/null +++ b/.github/workflows/ls-lint.yml @@ -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 diff --git a/.github/workflows/lint.yml b/.github/workflows/pre-commit.yml similarity index 79% rename from .github/workflows/lint.yml rename to .github/workflows/pre-commit.yml index d94ab1f42..d5cd66090 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/pre-commit.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