Skip to content

Commit

Permalink
Github action - test
Browse files Browse the repository at this point in the history
  • Loading branch information
green-coder committed Jan 3, 2025
1 parent 8463477 commit cb95348
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 1 deletion.
45 changes: 45 additions & 0 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
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
2 changes: 1 addition & 1 deletion deps.edn
Original file line number Diff line number Diff line change
Expand Up @@ -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"}}
Expand Down

0 comments on commit cb95348

Please sign in to comment.