-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* remove dynamic docstrings * add CLJS affordances to deps.edn * add CLJS test runner * add CLJS CI test * gitignore target dir * Update README
- Loading branch information
1 parent
8de557b
commit ba17ca5
Showing
7 changed files
with
126 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: ClojureScript Test | ||
on: [push] | ||
|
||
jobs: | ||
cljs-test: | ||
name: ClojureScript Test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'temurin' | ||
java-version: '17' | ||
|
||
- 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 -M:test:cljs-build | ||
|
||
- name: Run tests | ||
run: | | ||
node target/test.js | tee test-out.txt | ||
grep -qxF '0 failures, 0 errors.' test-out.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ target | |
lib | ||
multi-lib | ||
.cpcache/ | ||
target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
; Copyright (c) Rich Hickey. All rights reserved. | ||
; The use and distribution terms for this software are covered by the | ||
; Eclipse Public License 1.0 (http://opensource.org/licenses/eclipse-1.0.php) | ||
; which can be found in the file epl-v10.html at the root of this distribution. | ||
; By using this software in any fashion, you are agreeing to be bound by | ||
; the terms of this license. | ||
; You must not remove this notice, or any other, from this software. | ||
|
||
(ns ^{:doc "A unification library for Clojure." | ||
:author "Michael Fogus"} | ||
clojure.core.unify-test-runner | ||
(:require [clojure.core.unify-test] | ||
[clojure.test :refer [run-tests]])) | ||
|
||
(run-tests | ||
'clojure.core.unify-test) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters