setup: drop flake #241
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: ci | |
| on: [push] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: install Leiningen | |
| run: | | |
| curl -LSs https://raw.githubusercontent.com/technomancy/leiningen/stable/bin/lein -o /usr/bin/lein | |
| chmod a+x /usr/bin/lein | |
| - name: install Clojure dependencies | |
| run: lein deps | |
| - name: run Clojure tests | |
| run: lein test | |
| - run: PATH="$(pwd):$PATH" lein figtest-headless | |
| codox: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: install Leiningen | |
| run: | | |
| curl -LSs https://raw.githubusercontent.com/technomancy/leiningen/stable/bin/lein -o /usr/bin/lein | |
| chmod a+x /usr/bin/lein | |
| - 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} |