-
Notifications
You must be signed in to change notification settings - Fork 21
55 lines (42 loc) · 1.13 KB
/
clojure.yml
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3.4.0
- name: Setup Java
uses: actions/setup-java@v3.10.0
with:
java-version: '11'
distribution: 'corretto'
- name: Install clojure tools
uses: DeLaGuardo/setup-clojure@10.2
with:
cli: 1.11.1.1165
- name: Cache clojure dependencies
uses: actions/cache@v3
with:
path: |
~/.m2/repository
~/.gitlibs
~/.deps.clj
# List all files containing dependencies:
key: cljdeps-${{ hashFiles('deps.edn') }}
- name: Linter
run: clojure -M:clj-kondo --lint src
- name: Install karma
run: npm install -g karma karma-cljs-test karma-chrome-launcher karma-firefox-launcher
- name: Run JVM tests
run: clojure -X:test
- name: Run ClojureScript tests (Chrome)
run: clojure -Mcljs-test -x chrome-headless
- name: Run ClojureScript tests (Firefox)
run: clojure -Mcljs-test -x firefox-headless