Skip to content

Commit 5e99038

Browse files
committed
- add lite test action
1 parent fea514f commit 5e99038

File tree

1 file changed

+57
-0
lines changed

1 file changed

+57
-0
lines changed

.github/workflows/test.yaml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,63 @@ jobs:
5959
/System/Library/Frameworks/JavaScriptCore.framework/Versions/A/Helpers/jsc builds/out-adv/core-advanced-test.js | tee test-out.txt
6060
grep -qxF '0 failures, 0 errors.' test-out.txt
6161
62+
# Lite Tests
63+
lite-test:
64+
name: Lite Tests
65+
runs-on: macos-14
66+
steps:
67+
- uses: actions/checkout@v2
68+
69+
- uses: actions/setup-java@v4
70+
with:
71+
distribution: 'temurin'
72+
java-version: '21'
73+
74+
- uses: DeLaGuardo/[email protected]
75+
with:
76+
tools-deps: '1.10.1.763'
77+
78+
- name: Cache maven
79+
uses: actions/cache@v4
80+
env:
81+
cache-name: cache-maven
82+
with:
83+
path: ~/.m2
84+
key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('**/deps.edn') }}
85+
restore-keys: |
86+
${{ runner.os }}-${{ env.cache-name }}-
87+
88+
- name: Cache gitlibs
89+
uses: actions/cache@v4
90+
env:
91+
cache-name: cache-gitlibs
92+
with:
93+
path: ~/.gitlibs
94+
key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('**/deps.edn') }}
95+
restore-keys: |
96+
${{ runner.os }}-${{ env.cache-name }}-
97+
98+
# - name: Cache JSC
99+
# uses: actions/cache@v4
100+
# env:
101+
# cache-name: cache-jsc
102+
# with:
103+
# path: WebKit
104+
# key: ${{ runner.os }}-jsc
105+
# restore-keys: |
106+
# ${{ runner.os }}-jsc
107+
108+
- name: Build tests
109+
run: clojure -M:lite.test.build
110+
111+
# - name: Install JSC
112+
# run: ./ci/install_jsc.sh
113+
114+
- name: Run tests
115+
run: |
116+
/System/Library/Frameworks/JavaScriptCore.framework/Versions/A/Helpers/jsc builds/out-lite/lite-test.js | tee test-out.txt
117+
grep -qxF '0 failures, 0 errors.' test-out.txt
118+
62119
# Runtime Tests
63120
runtime-windows-test:
64121
name: Runtime Windows Tests

0 commit comments

Comments
 (0)