-
Notifications
You must be signed in to change notification settings - Fork 0
76 lines (62 loc) · 1.57 KB
/
main.yml
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
name: Code checks
on:
push:
branches:
- 'master'
pull_request:
types:
- 'ready_for_review'
- 'synchronize'
- 'opened'
- 'reopened'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test-clj:
runs-on: ubuntu-latest
if: ${{ !github.event.pull_request.draft }}
env:
MOLLIE_API_KEY: ${{ secrets.MOLLIE_API_KEY }}
MOLLIE_PARTNER_ID: ${{ secrets.MOLLIE_PARTNER_ID }}
MOLLIE_PROFILE_ID: ${{ secrets.MOLLIE_PROFILE_ID }}
steps:
- uses: actions/checkout@v4
- name: Prepare java
uses: actions/[email protected]
with:
distribution: 'temurin'
java-version: '20'
- name: Install Clojure tools
uses: DeLaGuardo/setup-clojure@master
with:
cli: 'latest'
bb: 'latest'
- name: Cache clojure dependencies
uses: actions/cache@v4
with:
path: |
~/.m2/repository
~/.gitlibs
~/.deps.clj
key: cljdeps-${{ hashFiles('deps.edn', 'bb.edn') }}
restore-keys: cljdeps-
- run: bb test
lint:
runs-on: ubuntu-latest
steps:
- uses: DeLaGuardo/setup-clojure@master
with:
clj-kondo: 'latest'
bb: 'latest'
- uses: actions/checkout@v4
- run: bb lint
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: DeLaGuardo/setup-clojure@master
with:
cljfmt: 'latest'
bb: 'latest'
- run: bb format:check