Skip to content

Commit 573ae32

Browse files
ci: extract Leiningen installation into separate action
1 parent 2a47f44 commit 573ae32

File tree

2 files changed

+13
-12
lines changed

2 files changed

+13
-12
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: "install Leiningen"
2+
runs:
3+
using: composite
4+
steps:
5+
- name: add pwd to PATH
6+
shell: bash
7+
run: echo "$(pwd)" >> "$GITHUB_PATH"
8+
- name: install Leiningen
9+
run: |
10+
curl -LSs https://raw.githubusercontent.com/technomancy/leiningen/stable/bin/lein -o lein
11+
chmod +x lein

.github/workflows/clojure.yml

+2-12
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,7 @@ jobs:
66
runs-on: ubuntu-latest
77
steps:
88
- uses: actions/checkout@v4
9-
- name: add pwd to PATH
10-
run: echo "$(pwd)" >> "$GITHUB_PATH"
11-
- name: install Leiningen
12-
run: |
13-
curl -LSs https://raw.githubusercontent.com/technomancy/leiningen/stable/bin/lein -o lein
14-
chmod +x lein
9+
- uses: ./.github/actions/install-leiningen
1510
- name: install Clojure dependencies
1611
run: lein deps
1712
- name: run Clojure tests
@@ -22,12 +17,7 @@ jobs:
2217
runs-on: ubuntu-latest
2318
steps:
2419
- uses: actions/checkout@v4
25-
- name: add pwd to PATH
26-
run: echo "$(pwd)" >> "$GITHUB_PATH"
27-
- name: install Leiningen
28-
run: |
29-
curl -LSs https://raw.githubusercontent.com/technomancy/leiningen/stable/bin/lein -o lein
30-
chmod +x lein
20+
- uses: ./.github/actions/install-leiningen
3121
- run: lein codox
3222

3323
notify-test-failures:

0 commit comments

Comments
 (0)