mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
ci(pre-commit): add pre-commit configuration (#13760)
Signed-off-by: Luís Ferreira <contact@lsferreira.net>
This commit is contained in:
parent
b0d094a4de
commit
5e1e5c190a
2 changed files with 39 additions and 0 deletions
20
.github/workflows/pre_commit.yml
vendored
Normal file
20
.github/workflows/pre_commit.yml
vendored
Normal file
|
@ -0,0 +1,20 @@
|
|||
name: pre_commit
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- master
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
pre-commit:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
SKIP: no-commit-to-branch
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-python@v3.0.0
|
||||
- uses: pre-commit/action@v2.0.3
|
Loading…
Add table
Add a link
Reference in a new issue