Skip to content

Commit 9707875

Browse files
Merge branch 'ci-improvements'
2 parents 57aa4d0 + 14a91bf commit 9707875

File tree

4 files changed

+36
-103
lines changed

4 files changed

+36
-103
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
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+
shell: bash
10+
run: |
11+
curl -LSs https://raw.githubusercontent.com/technomancy/leiningen/stable/bin/lein -o lein
12+
chmod +x lein

.github/workflows/clojure.yml

+24-4
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,29 @@ jobs:
66
runs-on: ubuntu-latest
77
steps:
88
- uses: actions/checkout@v4
9-
- uses: DeterminateSystems/nix-installer-action@main
9+
- uses: ./.github/actions/install-leiningen
1010
- name: install Clojure dependencies
11-
run: nix develop -c lein deps
11+
run: lein deps
1212
- name: run Clojure tests
13-
run: nix develop -c lein test
14-
- run: PATH="$(pwd):$PATH" nix develop --impure -c lein figtest-headless
13+
run: lein test
14+
- run: lein figtest-headless
15+
16+
codox:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v4
20+
- uses: ./.github/actions/install-leiningen
21+
- run: lein codox
22+
23+
notify-test-failures:
24+
runs-on: ubuntu-latest
25+
needs: [test, codox]
26+
if: failure() && github.ref == 'refs/heads/main'
27+
steps:
28+
- env:
29+
SECRET: ${{ secrets.MATTERMOST_WEBHOOK_URL }}
30+
CHANNEL: "active-clojure"
31+
USERNAME: "GitHub"
32+
run: |
33+
URL=https://github.com/${GITHUB_REPOSITORY}/commit/${GITHUB_SHA}
34+
curl -i --data-urlencode "payload={\"channel\":\"${CHANNEL}\", \"username\":\"${USERNAME}\",\"text\":\"Failure in tests: ${URL}\"}" ${SECRET}

flake.lock

-58
This file was deleted.

flake.nix

-41
This file was deleted.

0 commit comments

Comments
 (0)