-
Notifications
You must be signed in to change notification settings - Fork 45
41 lines (39 loc) · 1.24 KB
/
lein-test.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: lein_test
on:
workflow_dispatch:
push:
branches:
- main
paths: ['src/**','test/**']
pull_request:
types: [opened, reopened, edited, synchronize]
paths: ['src/**','test/**']
jobs:
run-lein-tests:
name: lein test - Java ${{ matrix.java }}
runs-on: ubuntu-latest
strategy:
matrix:
java: [ '8', '11', '17' ]
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Setup java
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: ${{ matrix.java }}
- name: Install Clojure tools
uses: DeLaGuardo/[email protected]
with:
cli: latest # Clojure CLI based on tools.deps
lein: latest # Leiningen
boot: latest # Boot.clj
bb: latest # Babashka
clj-kondo: latest # Clj-kondo
cljstyle: latest # cljstyle
zprint: latest # zprint
- name: Run lein tests with dev test profile
run: lein with-profile dev test
- name: Run lein tests with pseudo-dev, fips profiles
run: lein with-profile pseudo-dev,fips test