-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (42 loc) · 1.3 KB
/
format.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Formatter
on: [pull_request]
jobs:
formatting:
runs-on: ubuntu-latest
steps:
- name: git checkout
uses: actions/[email protected]
with:
ref: ${{ github.head_ref }}
token: ${{ secrets.WALL_BREW_BOT_PAT }}
- name: Cache maven dependencies
uses: actions/cache@v3
env:
cache-name: cache-maven
with:
path: ~/.m2
key: ${{ runner.os }}-clj-${{ hashFiles('**/project.clj') }}
restore-keys: |
${{ runner.os }}-clj
- name: Install Clojure dependencies
run: lein deps
- name: Install cljstyle
uses: just-sultanov/setup-cljstyle@v1
with:
version: '0.14.0'
- name: Format Clojure code
run: |
cljstyle fix --report --report-timing --verbose
- name: Sort Namespaces
run: |
lein ns-sort
- name: Render Changelog
run: |
lein sealog render
- name: Commit changes
uses: stefanzweifel/[email protected]
with:
commit_message: |
[Format] Auto-formatting
# This file was automatically copied and populated by rebroadcast
# Do not edit this file directly, instead modify the source at https://github.com/Wall-Brew-Co/rebroadcast