Skip to content

Commit c65b1d6

Browse files
committed
Configure CI lint checks for project formatting
1 parent 83bb554 commit c65b1d6

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/lint.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Lint
2+
3+
on: [push]
4+
5+
jobs:
6+
check-formatting:
7+
runs-on: ubuntu-latest
8+
9+
permissions:
10+
contents: read
11+
12+
steps:
13+
- name: Checkout git repo
14+
uses: actions/checkout@v4
15+
16+
- uses: extractions/setup-just@v3
17+
- uses: DeLaGuardo/setup-clojure@13.2
18+
with:
19+
cljfmt: 0.15.6
20+
21+
- name: Install prettier
22+
run: |
23+
npm i -g prettier
24+
25+
- name: Install Pruner
26+
run: |
27+
set -euo pipefail
28+
29+
mkdir -p $HOME/.local/bin
30+
curl -fL https://github.com/julienvincent/pruner/releases/download/v1.0.0-alpha.9/pruner-linux-amd64 \
31+
-o "$HOME/.local/bin/pruner"
32+
33+
chmod +x "$HOME/.local/bin/pruner"
34+
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
35+
36+
pruner --version
37+
38+
- name: Check Formatting
39+
run: just lint

0 commit comments

Comments
 (0)