Skip to content

Commit

Permalink
CLI tests
Browse files Browse the repository at this point in the history
  • Loading branch information
swannodette committed Jun 28, 2020
1 parent 6ed209c commit 0982e17
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 1 deletion.
37 changes: 37 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -122,3 +122,40 @@ jobs:
- 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

- uses: DeLaGuardo/[email protected]
with:
tools-deps: '1.10.1.536'

- 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: clojure -A:cli.test.run
5 changes: 4 additions & 1 deletion deps.edn
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@
org.clojure/tools.reader {:mvn/version "1.3.2"}
org.clojure/test.check {:mvn/version "0.10.0-alpha3"}}
:aliases
{:compiler.test {:extra-paths ["src/test/cljs" "src/test/cljs_build" "src/test/cljs_cp"
{:cli.test.run {:extra-paths ["src/test/cljs_cli"]
:main-opts ["-i" "src/test/cljs_cli/cljs_cli/test_runner.clj"
"-e" "(cljs-cli.test-runner/-main)"]}
:compiler.test {:extra-paths ["src/test/cljs" "src/test/cljs_build" "src/test/cljs_cp"
"src/test/clojure" "src/test/self"]}
:compiler.test.run {:main-opts ["-i" "src/test/clojure/cljs/test_runner.clj"
"-e" "(cljs.test-runner/-main)"]}
Expand Down

0 comments on commit 0982e17

Please sign in to comment.