Merge pull request #113 from juxt/joelittlejohn-patch-1 #4
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: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
test-clj: | |
runs-on: ubuntu-latest | |
container: | |
image: cimg/clojure:1.11.1-browsers | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Check cache | |
uses: actions/cache/restore@v4 | |
id: cache | |
with: | |
path: | | |
~/.m2/repository | |
~/.lein | |
key: clj-deps-${{ hashFiles('project.clj') }} | |
- run: lein deps | |
- run: lein eastwood | |
- run: lein cljfmt check | |
- run: lein test | |
- name: Save cache | |
uses: actions/cache/save@v4 | |
with: | |
path: | | |
~/.m2/repository | |
~/.lein | |
key: clj-deps-${{ hashFiles('project.clj') }} | |
test-cljs: | |
runs-on: ubuntu-latest | |
container: | |
image: cimg/clojure:1.11.1-browsers | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- run: sudo npm install -g --unsafe-perm lumo-cljs | |
- run: ./lumo-test |