Skip to content

Commit

Permalink
Run CLJS tests when building images
Browse files Browse the repository at this point in the history
  • Loading branch information
jonsmock committed May 8, 2024
1 parent 789a802 commit 1e0c695
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ RUN cd /app && ./node_modules/.bin/shadow-cljs info

# main app build
ADD src/ /app/src/
#ADD test/ /app/test/
ADD test/ /app/test/
RUN cd /app && \
./node_modules/.bin/shadow-cljs compile test && \
node build/test.js
RUN cd /app && \
./node_modules/.bin/shadow-cljs compile dctest && \
chmod +x build/*.js
Expand Down
12 changes: 10 additions & 2 deletions shadow-cljs.edn
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{:source-paths ["src/"]
{:source-paths ["src/" "test/"]

:dependencies [[funcool/promesa "8.0.450"]
[cljs-bean "1.8.0"]]
Expand All @@ -12,4 +12,12 @@

:compiler-options
{:optimizations :simple
:source-map-use-fs-paths true}}}}
:source-map-use-fs-paths true}}

:test
{:target :node-test
:output-to "build/test.js"
:compiler-options
{:optimizations :simple
:source-map-use-fs-paths true}}
}}

0 comments on commit 1e0c695

Please sign in to comment.