Skip to content

Commit 3d8d522

Browse files
committed
Add pre-commit-elisp hooks and GitHub actions
1 parent c05ba25 commit 3d8d522

File tree

4 files changed

+36
-6
lines changed

4 files changed

+36
-6
lines changed

.dir-locals.el

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
;; pre-commit-elisp .dir-locals.el - https://github.com/jamescherti/pre-commit-elisp
2+
((nil . ((pre-commit-elisp-error-on-compile-warning . t))))

.github/workflows/ci.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,15 @@
1515
#
1616

1717
name: CI
18-
on:
19-
- workflow_dispatch
20-
- pull_request
18+
on: # yamllint disable-line rule:truthy
19+
push:
20+
branches:
21+
- main
22+
- develop
23+
pull_request:
24+
branches:
25+
- main
26+
workflow_dispatch:
2127

2228
jobs:
2329
test:

.github/workflows/melpazoid.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,15 @@
66
# to .github/workflows/melpazoid.yml and modifying RECIPE and EXIST_OK below.
77

88
name: melpazoid
9-
on:
10-
- workflow_dispatch
11-
- pull_request
9+
on: # yamllint disable-line rule:truthy
10+
push:
11+
branches:
12+
- main
13+
- develop
14+
pull_request:
15+
branches:
16+
- main
17+
workflow_dispatch:
1218

1319
jobs:
1420
build:

.pre-commit-config.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
3+
repos:
4+
- repo: https://github.com/pre-commit/pre-commit-hooks
5+
rev: v2.3.0
6+
hooks:
7+
- id: check-yaml
8+
- id: end-of-file-fixer
9+
- id: trailing-whitespace
10+
11+
- repo: https://github.com/jamescherti/pre-commit-elisp
12+
rev: v1.0.8
13+
hooks:
14+
- id: elisp-check-parens
15+
- id: elisp-check-byte-compile
16+
exclude: '\.dir-locals\.el$'

0 commit comments

Comments
 (0)