forked from metosin/malli
-
Notifications
You must be signed in to change notification settings - Fork 0
143 lines (133 loc) · 3.85 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
---
name: Run tests
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
build-clj:
timeout-minutes: 5
strategy:
matrix:
# Supported Java versions: LTS releases and latest
jdk: [8, 11, 17, 21]
clojure: [11]
name: Java ${{ matrix.jdk }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Java ${{ matrix.jdk }}
uses: actions/setup-java@v4
with:
distribution: zulu
java-version: ${{ matrix.jdk }}
- uses: actions/cache/restore@v4
id: cache-restore
with:
path: |
~/.m2/repository
~/.gitlibs
key: ${{ runner.os }}-build-clj-${{ hashFiles('**/deps.edn') }}-${{ matrix.jdk }}
restore-keys: |
${{ runner.os }}-build-clj-${{ hashFiles('**/deps.edn') }}-
${{ runner.os }}-build-clj-
- name: Setup Clojure
uses: DeLaGuardo/setup-clojure@master
with:
cli: latest
- name: Run tests
run: bin/kaocha
- name: Always Save Cache
id: cache-save
if: always() && steps.cache-restore.outputs.cache-hit != 'true'
uses: actions/cache/save@v4
with:
key: ${{ steps.cache-restore.outputs.cache-primary-key }}
path: |
~/.m2/repository
~/.gitlibs
build-cljs:
timeout-minutes: 5
name: ClojureScript
strategy:
matrix:
mode: [none, advanced, cherry-none, cherry-advanced]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Java 11
uses: actions/setup-java@v4
with:
distribution: zulu
java-version: 11
- uses: actions/cache/restore@v4
id: cache-restore
with:
path: |
~/.m2/repository
~/.gitlibs
key: ${{ runner.os }}-build-cljs-${{ hashFiles('**/deps.edn') }}
restore-keys: |
${{ runner.os }}-build-cljs-
- name: Setup Clojure
uses: DeLaGuardo/setup-clojure@master
with:
cli: latest
- name: Setup Node.js
uses: actions/[email protected]
with:
node-version: 16
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Run tests on ${{ matrix.mode }}
run: bin/node ${{ matrix.mode }}
- name: Always Save Cache
id: cache-save
if: always() && steps.cache-restore.outputs.cache-hit != 'true'
uses: actions/cache/save@v4
with:
key: ${{ steps.cache-restore.outputs.cache-primary-key }}
path: |
~/.m2/repository
~/.gitlibs
build-bb:
timeout-minutes: 5
name: Babashka
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Java 11
uses: actions/setup-java@v4
with:
distribution: zulu
java-version: 11
- uses: actions/cache/restore@v4
id: cache-restore
with:
path: |
~/.m2/repository
~/.deps.clj
~/.gitlibs
key: ${{ runner.os }}-build-bb-${{ hashFiles('**/deps.edn') }}-${{ hashFiles('**/bb.edn') }}
restore-keys: |
${{ runner.os }}-build-bb-${{ hashFiles('**/deps.edn') }}-
${{ runner.os }}-build-bb-
- name: Setup Clojure
uses: DeLaGuardo/setup-clojure@master
with:
cli: latest
bb: latest
- name: Run tests
run: bb test-bb
- name: Always Save Cache
id: cache-save
if: always() && steps.cache-restore.outputs.cache-hit != 'true'
uses: actions/cache/save@v4
with:
key: ${{ steps.cache-restore.outputs.cache-primary-key }}
path: |
~/.m2/repository
~/.deps.clj
~/.gitlibs