monad: zap a bug with top-level put-state in monad runners #208
This file contains 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: Tests | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Install karma | |
run: | | |
sudo npm install -g karma | |
sudo npm install -g karma-cljs-test | |
sudo npm install -g karma-firefox-launcher | |
sudo npm install -g karma-chrome-launcher | |
- name: Install dependencies | |
run: lein deps | |
- name: Run tests | |
run: | | |
lein doo firefox-headless test once | |
lein doo chrome-headless test once | |
lein test | |
- name: Notify with mattermost upon failure | |
if: failure() | |
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} |