From cb95348a9b7829d0e6f250e1df9a41d74e33d130 Mon Sep 17 00:00:00 2001 From: Vincent Cantin Date: Fri, 3 Jan 2025 20:06:56 +0200 Subject: [PATCH] Github action - test --- .github/workflows/validate.yml | 45 ++++++++++++++++++++++++++++++++++ deps.edn | 2 +- 2 files changed, 46 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/validate.yml diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml new file mode 100644 index 0000000..689f960 --- /dev/null +++ b/.github/workflows/validate.yml @@ -0,0 +1,45 @@ +name: Run tests + +on: [push, pull_request] + +jobs: + + validate: + + strategy: + matrix: + # LTS and latest + jdk: [8, 11, 17, 21] + + name: "Clojure (Java ${{ matrix.jdk }})" + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: "Setup Java ${{ matrix.jdk }}" + uses: actions/setup-java@v1.4.3 + with: + java-version: ${{ matrix.jdk }} + + - uses: actions/setup-node@v4 + with: + node-version: lts/hydrogen + + - name: Setup Clojure + uses: DeLaGuardo/setup-clojure@master + with: + cli: latest + + - name: Cache deps dependencies + uses: actions/cache@v4 + with: + path: ~/.m2/repository + key: ${{ runner.os }}-clojure-${{ hashFiles('**/deps.edn') }} + restore-keys: | + ${{ runner.os }}-clojure + + - run: npm ci + + - run: ./bin/kaocha diff --git a/deps.edn b/deps.edn index b7778dd..0cdce0b 100644 --- a/deps.edn +++ b/deps.edn @@ -12,7 +12,7 @@ :main-opts ["-m" "kaocha.runner"]} ; clojure -M:outdated --upgrade - :outdated {:extra-deps {com.github.liquidz/antq {:mvn/version "2.11.1250"}} + :outdated {:extra-deps {com.github.liquidz/antq {:mvn/version "2.11.1260"}} :main-opts ["-m" "antq.core"]} :depstar {:replace-deps {com.github.seancorfield/depstar {:mvn/version "2.1.303"}}