Skip to content

add CI tests #48

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 2, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Run tests

on:
push:
branches: [master]
tags:
- 'v[0-9]+.[0-9]+.[0-9]+*'
Comment on lines +6 to +7
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't we want tests to run on every master commit too? not only releases

pull_request:
branches: [master]

env:
# increment to clear caches
ACTIONS_CACHE_VERSION: 'v1'

jobs:
test:
strategy:
matrix:
jdk: [21]

name: Test

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Setup Java ${{ matrix.jdk }}
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: ${{ matrix.jdk }}
- uses: actions/cache@v4
with:
path: |
~/.m2/repository
~/.gitlibs
~/.deps.clj
key: clojuredeps-${{ env.ACTION_CACHE_VERSION }}-${{ hashFiles('deps.edn', 'bb.edn') }}
restore-keys: |
clojuredeps-${{ env.ACTION_CACHE_VERSION }}-
- name: Setup Clojure and Babashka
uses: DeLaGuardo/setup-clojure@master
with:
cli: latest
bb: latest
- name: Run tests
run: bb test