impr: modernize pre-commit
GHA
#4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# SPDX-FileCopyrightText: 2023 Alex Turbov <zaufi@pm.me> | |
# SPDX-License-Identifier: CC0-1.0 | |
name: Checking `pre-commit` hooks | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
# enable this workflow to be reused | |
workflow_call: | |
jobs: | |
pre-commit-checks: | |
name: Checking `pre-commit` hooks | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Checking configured hooks | |
uses: pre-commit/action@v3.0.1 |