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 09093a1
Show file tree
Hide file tree
Showing 4 changed files with 91 additions and 4 deletions.
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
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
node_modules/
package.json.lock
package-lock.json
yarn.lock
out/

.cpcache/
Expand Down
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
45 changes: 45 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 09093a1

Please sign in to comment.