From fc78bb7515320927d8fa2d577c050a4f45b84977 Mon Sep 17 00:00:00 2001 From: Yang Ming-Tian <1178715749@qq.com> Date: Sat, 27 Jan 2024 16:45:40 +0800 Subject: [PATCH] Add tests for REPL and Leiningen template (#50) --- .github/scripts/test-datajure-repl | 5 +++++ .github/scripts/test-lein-template | 8 ++++++++ .github/workflows/test.yml | 8 +++++++- 3 files changed, 20 insertions(+), 1 deletion(-) create mode 100755 .github/scripts/test-datajure-repl create mode 100755 .github/scripts/test-lein-template diff --git a/.github/scripts/test-datajure-repl b/.github/scripts/test-datajure-repl new file mode 100755 index 0000000..b0a0db8 --- /dev/null +++ b/.github/scripts/test-datajure-repl @@ -0,0 +1,5 @@ +#!/usr/bin/env bash + +wget https://raw.githubusercontent.com/clojure-finance/datajure/main/scripts/datajure +chmod +x datajure +exit | ./datajure \ No newline at end of file diff --git a/.github/scripts/test-lein-template b/.github/scripts/test-lein-template new file mode 100755 index 0000000..8620b14 --- /dev/null +++ b/.github/scripts/test-lein-template @@ -0,0 +1,8 @@ +#!/usr/bin/env bash + +set -euo pipefail + +cd lein-template +lein new com.github.clojure-finance/datajure myproject +cd myproject +exit | lein run \ No newline at end of file diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9a47eeb..3fadbfc 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -29,4 +29,10 @@ jobs: run: lein install - name: Run tests - run: lein test \ No newline at end of file + run: lein test + + - name: Test Leiningen template + run: chmod +x ./.github/scripts/test-lein-template && ./.github/scripts/test-lein-template + + - name: Test Datajure REPL + run: chmod +x ./.github/scripts/test-datajure-repl && ./.github/scripts/test-datajure-repl \ No newline at end of file