Skip to content

Commit 61992c7

Browse files
committed
Add CI job
1 parent 471d3d3 commit 61992c7

2 files changed

Lines changed: 19 additions & 0 deletions

File tree

.github/workflows/PreCommit.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Pre-Commit
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
tags: ["*"]
8+
pull_request:
9+
types: [opened, reopened, synchronize, ready_for_review]
10+
workflow_dispatch:
11+
12+
jobs:
13+
pre-commit-ci-lite:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: pre-commit-ci/lite-action@v1.1.0
17+
if: always()

.pre-commit-config.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ repos:
66
- id: end-of-file-fixer
77
- id: check-yaml
88
- id: check-added-large-files
9+
- id: check-merge-conflict
10+
- id: no-commit-to-branch
911
- repo: "https://github.com/domluna/JuliaFormatter.jl"
1012
rev: "v2.1.6" # or whatever the desired release is
1113
hooks:

0 commit comments

Comments
 (0)