-
Notifications
You must be signed in to change notification settings - Fork 4
34 lines (31 loc) · 985 Bytes
/
clojure.yml
File metadata and controls
34 lines (31 loc) · 985 Bytes
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
name: ci
on: [push, workflow_dispatch]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/install-leiningen
- name: install Clojure dependencies
run: lein deps
- name: run Clojure tests
run: lein test
- run: lein figtest-headless
codox:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/install-leiningen
- run: lein codox
notify-test-failures:
runs-on: ubuntu-latest
needs: [test, codox]
if: failure() && github.ref == 'refs/heads/main'
steps:
- env:
SECRET: ${{ secrets.MATTERMOST_WEBHOOK_URL }}
CHANNEL: "active-clojure"
USERNAME: "GitHub"
run: |
URL=https://github.com/${GITHUB_REPOSITORY}/commit/${GITHUB_SHA}
curl -i --data-urlencode "payload={\"channel\":\"${CHANNEL}\", \"username\":\"${USERNAME}\",\"text\":\"Failure in tests: ${URL}\"}" ${SECRET}