-
Notifications
You must be signed in to change notification settings - Fork 6
140 lines (131 loc) · 3.51 KB
/
check.yaml
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
name: Check Code
on:
push:
workflow_dispatch:
jobs:
clj-kondo:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v3
with:
path: |
~/.m2/repository
~/.gitlibs
~/.deps.clj
key: cljdeps-lint-${{ hashFiles('**/project.clj') }}
restore-keys: cljdeps-lint-
- run: lein clj-kondo
working-directory: ./core
eastwood:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v3
with:
path: |
~/.m2/repository
~/.gitlibs
~/.deps.clj
key: cljdeps-lint-${{ hashFiles('**/project.clj') }}
restore-keys: cljdeps-lint-
- run: lein eastwood
working-directory: ./core
kibit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v3
with:
path: |
~/.m2/repository
~/.gitlibs
~/.deps.clj
key: cljdeps-lint-${{ hashFiles('**/project.clj') }}
restore-keys: cljdeps-lint-
- run: lein kibit
working-directory: ./core
test-clj:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v3
with:
path: |
~/.m2/repository
~/.gitlibs
~/.deps.clj
key: cljdeps-test-${{ hashFiles('**/project.clj') }}
restore-keys: cljdeps-test-
- run: lein gen-compliance :clj
working-directory: ./core
- run: lein test
working-directory: ./core
test-cljs-unit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v3
with:
path: |
~/.m2/repository
~/.gitlibs
~/.deps.clj
key: cljdeps-test-${{ hashFiles('**/project.clj') }}
restore-keys: cljdeps-test-
# Hack allowing compliance_tests.cljs to compile without generated tests
- run: |
mkdir -p src/test/cljs/compliance/generated
echo "(ns test.compliance.generated.tests)" > src/test/cljs/compliance/generated/tests.cljs
working-directory: ./core
- run: npm install
working-directory: ./core
- run: lein cljs-build-test
working-directory: ./core
- run: node target/cljs-test.js
working-directory: ./core
test-cljs-compliance:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v3
with:
path: |
~/.m2/repository
~/.gitlibs
~/.deps.clj
key: cljdeps-test-${{ hashFiles('**/project.clj') }}
restore-keys: cljdeps-test-
- run: lein gen-compliance :cljs
working-directory: ./core
- run: npm install
working-directory: ./core
- run: lein cljs-build-compliance
working-directory: ./core
- run: node target/cljs-compliance.js
working-directory: ./core
test-java:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '11'
- run: ./gradlew test
working-directory: ./api
cloverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '11'
- run: lein gen-compliance :clj
working-directory: ./core
- run: lein cloverage --codecov
working-directory: ./core
- uses: codecov/codecov-action@v3
with:
file: core/target/coverage/codecov.json