forked from clojure/clojurescript
-
Notifications
You must be signed in to change notification settings - Fork 0
209 lines (178 loc) · 5.52 KB
/
test.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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
name: Tests
on: [push]
jobs:
# Runtime Tests
runtime-test:
name: Runtime Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: DeLaGuardo/[email protected]
with:
tools-deps: '1.10.1.763'
- name: Cache maven
uses: actions/cache@v2
env:
cache-name: cache-maven
with:
path: ~/.m2
key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('**/deps.edn') }}
restore-keys: |
${{ runner.os }}-${{ env.cache-name }}-
- name: Cache gitlibs
uses: actions/cache@v2
env:
cache-name: cache-gitlibs
with:
path: ~/.gitlibs
key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('**/deps.edn') }}
restore-keys: |
${{ runner.os }}-${{ env.cache-name }}-
- name: Cache JSC
uses: actions/cache@v2
env:
cache-name: cache-jsc
with:
path: WebKit
key: ${{ runner.os }}-jsc
restore-keys: |
${{ runner.os }}-jsc
- name: Build tests
run: clojure -A:runtime.test.build
- name: Install JSC
run: ./ci/install_jsc.sh
- name: Run tests
run: |
WebKit/WebKitBuild/Release/bin/jsc builds/out-adv/core-advanced-test.js | tee test-out.txt
grep -qxF '0 failures, 0 errors.' test-out.txt
# Self-host Tests
self-host-test:
name: Self-host Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: DeLaGuardo/[email protected]
with:
tools-deps: '1.10.1.763'
- name: Cache maven
uses: actions/cache@v2
env:
cache-name: cache-maven
with:
path: ~/.m2
key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('**/deps.edn') }}
restore-keys: |
${{ runner.os }}-${{ env.cache-name }}-
- name: Cache gitlibs
uses: actions/cache@v2
env:
cache-name: cache-gitlibs
with:
path: ~/.gitlibs
key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('**/deps.edn') }}
restore-keys: |
${{ runner.os }}-${{ env.cache-name }}-
- name: Build tests
run: clojure -A:selfhost.test.build
- name: Run tests
run: |
node builds/out-self/core-self-test.js | tee test-out.txt
grep -qxF '0 failures, 0 errors.' test-out.txt
# Self-parity Tests
self-parity-test:
name: Self-parity Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: DeLaGuardo/[email protected]
with:
tools-deps: '1.10.1.763'
- name: Cache maven
uses: actions/cache@v2
env:
cache-name: cache-maven
with:
path: ~/.m2
key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('**/deps.edn') }}
restore-keys: |
${{ runner.os }}-${{ env.cache-name }}-
- name: Cache gitlibs
uses: actions/cache@v2
env:
cache-name: cache-gitlibs
with:
path: ~/.gitlibs
key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('**/deps.edn') }}
restore-keys: |
${{ runner.os }}-${{ env.cache-name }}-
- name: Build tests
run: clojure -A:selfparity.test.build
- name: Run tests
run: |
node builds/out-self-parity/main.js | tee test-out.txt
grep -qxF '0 failures, 0 errors.' test-out.txt
# Compiler Tests
compiler-test:
name: Compiler Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: DeLaGuardo/[email protected]
with:
tools-deps: '1.10.1.763'
- name: Cache maven
uses: actions/cache@v2
env:
cache-name: cache-maven
with:
path: ~/.m2
key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('**/deps.edn') }}
restore-keys: |
${{ runner.os }}-${{ env.cache-name }}-
- name: Cache gitlibs
uses: actions/cache@v2
env:
cache-name: cache-gitlibs
with:
path: ~/.gitlibs
key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('**/deps.edn') }}
restore-keys: |
${{ runner.os }}-${{ env.cache-name }}-
- name: Run tests
run: clojure -A:compiler.test:compiler.test.run
# CLI Tests
cli-test:
name: CLI Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: DeLaGuardo/[email protected]
with:
tools-deps: '1.10.1.763'
- name: Cache maven
uses: actions/cache@v2
env:
cache-name: cache-maven
with:
path: ~/.m2
key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('**/deps.edn') }}
restore-keys: |
${{ runner.os }}-${{ env.cache-name }}-
- name: Cache gitlibs
uses: actions/cache@v2
env:
cache-name: cache-gitlibs
with:
path: ~/.gitlibs
key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('**/deps.edn') }}
restore-keys: |
${{ runner.os }}-${{ env.cache-name }}-
- name: Build Uberjar
run: ./script/uberjar
- name: Run tests
run: |
unset JAVA_TOOL_OPTIONS
clojure -A:cli.test.run | tee test-out.txt
grep -qxF '0 failures, 0 errors.' test-out.txt