test: add test cases for core fns. #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run tests | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
paths: | |
- ".github/workflows/test.yaml" | |
- "src/**" | |
- "test/**" | |
- "bb.edn" | |
- "deps.edn" | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Java | |
uses: actions/setup-java@v4 | |
with: | |
distribution: "temurin" | |
java-version: "21" | |
- name: Setup Clojure | |
uses: DeLaGuardo/setup-clojure@12.5 | |
with: | |
cli: "latest" | |
bb: "latest" | |
- uses: actions/cache@v4 | |
with: | |
path: | | |
~/.m2/repository | |
~/.gitlibs | |
~/.deps.clj | |
key: cljdeps-${{ hashFiles('deps.edn', 'bb.edn') }} | |
restore-keys: cljdeps- | |
- name: Run JVM tests | |
run: | | |
bb test:clj | |
- name: Run bb tests | |
run: | | |
bb test:bb |