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
26 changes: 26 additions & 0 deletions .github/workflows/pre-commit-manual.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# https://github.com/j178/prek
name: Manual hooks

on: [pull_request]

permissions:
contents: read

jobs:
pre-commit:
name: 🏃‍♂️‍➡️ prek on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
steps:
- name: "Checkout ${{ github.ref }} ( ${{ github.sha }} )"
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Run prek-action
uses: j178/prek-action@53276d8b0d10f8b6672aa85b4588c6921d0370cc # v2.0.1
with:
install-only: true
- name: Run manual prek hooks
run: prek run --all-files --hook-stage manual
14 changes: 8 additions & 6 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,24 @@
name: pre-commit
# https://github.com/j178/prek
name: Standard hooks

on: [pull_request]

permissions:
contents: read

on: [pull_request]

jobs:
pre-commit:
name: 🏃🏼 Pre-commit on ${{ matrix.os }}
name: 🏃🏿‍♂️‍➡️ Run prek on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
steps:
- name: Checkout Code
- name: "Checkout ${{ github.ref }} ( ${{ github.sha }} )"
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0
persist-credentials: false
- name: Run prek-action
uses: j178/prek-action@53276d8b0d10f8b6672aa85b4588c6921d0370cc # v2.0.1
with:
extra-args: --all-files
Loading