Skip to content

Commit 4dd6d62

Browse files
authored
Merge pull request #48 from frenchy64/issue-4-add-ci-tests
add CI tests
2 parents 3c64486 + 27c191e commit 4dd6d62

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

.github/workflows/test.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Run tests
2+
3+
on:
4+
push:
5+
branches: [master]
6+
tags:
7+
- 'v[0-9]+.[0-9]+.[0-9]+*'
8+
pull_request:
9+
branches: [master]
10+
11+
env:
12+
# increment to clear caches
13+
ACTIONS_CACHE_VERSION: 'v1'
14+
15+
jobs:
16+
test:
17+
strategy:
18+
matrix:
19+
jdk: [21]
20+
21+
name: Test
22+
23+
runs-on: ubuntu-latest
24+
25+
steps:
26+
- uses: actions/checkout@v4
27+
- name: Setup Java ${{ matrix.jdk }}
28+
uses: actions/setup-java@v4
29+
with:
30+
distribution: temurin
31+
java-version: ${{ matrix.jdk }}
32+
- uses: actions/cache@v4
33+
with:
34+
path: |
35+
~/.m2/repository
36+
~/.gitlibs
37+
~/.deps.clj
38+
key: clojuredeps-${{ env.ACTION_CACHE_VERSION }}-${{ hashFiles('deps.edn', 'bb.edn') }}
39+
restore-keys: |
40+
clojuredeps-${{ env.ACTION_CACHE_VERSION }}-
41+
- name: Setup Clojure and Babashka
42+
uses: DeLaGuardo/setup-clojure@master
43+
with:
44+
cli: latest
45+
bb: latest
46+
- name: Run tests
47+
run: bb test

0 commit comments

Comments
 (0)