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