From 6a441feea1711b3890916d5a6ec927487ba5640f Mon Sep 17 00:00:00 2001 From: Timothy Pratley Date: Thu, 8 Jul 2021 17:43:51 -0700 Subject: [PATCH 1/3] adds github action to run the tests --- .github/workflows/clojure.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/clojure.yml diff --git a/.github/workflows/clojure.yml b/.github/workflows/clojure.yml new file mode 100644 index 00000000..b5af2421 --- /dev/null +++ b/.github/workflows/clojure.yml @@ -0,0 +1,31 @@ +name: CI + +on: + push: + branches: '*' + pull_request: + branches: '*' + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/cache@v1 + with: + path: ~/.m2/repository + key: ${{ runner.os }}-maven-${{ hashFiles('**/deps.edn') }} + restore-keys: | + ${{ runner.os }}-maven- + + - name: Install clojure tools + uses: DeLaGuardo/setup-clojure@3.2 + with: + cli: latest # Clojure CLI based on tools.deps + + - name: Install dependencies + run: clojure -P + + - name: Run tests + run: clojure -A:test -m kaocha.runner + From 2302f22ad65d71dc57603ad357214e3661e9b8c1 Mon Sep 17 00:00:00 2001 From: Timothy Pratley Date: Thu, 8 Jul 2021 17:52:41 -0700 Subject: [PATCH 2/3] adds npm and ws as a dependency (they seem to be needed??) --- .github/workflows/clojure.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/clojure.yml b/.github/workflows/clojure.yml index b5af2421..cde6c32b 100644 --- a/.github/workflows/clojure.yml +++ b/.github/workflows/clojure.yml @@ -18,6 +18,14 @@ jobs: restore-keys: | ${{ runner.os }}-maven- + - name: Install npm + uses: actions/setup-node@v2 + with: + node-version: '14' + + - name: Install ws + run: npm install ws + - name: Install clojure tools uses: DeLaGuardo/setup-clojure@3.2 with: From bc236865ce476280823b267279f18f25300d0db2 Mon Sep 17 00:00:00 2001 From: Timothy Pratley Date: Thu, 8 Jul 2021 18:09:28 -0700 Subject: [PATCH 3/3] increase timeout and fix clojure deprecation warning * default task timeout is pretty close to the expected build time --- .github/workflows/clojure.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/clojure.yml b/.github/workflows/clojure.yml index cde6c32b..3abae772 100644 --- a/.github/workflows/clojure.yml +++ b/.github/workflows/clojure.yml @@ -35,5 +35,6 @@ jobs: run: clojure -P - name: Run tests - run: clojure -A:test -m kaocha.runner + timeout-minutes: 5 + run: clojure -M:test -m kaocha.runner