-
Notifications
You must be signed in to change notification settings - Fork 4
69 lines (58 loc) · 1.48 KB
/
lint-and-test.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
name: Lint and Test
on: push
jobs:
clj_style:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: 0918nobita/[email protected]
with:
cljstyle-version: 0.15.0
- run: cljstyle check --report -v
clj_kondo:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: DeLaGuardo/setup-clj-kondo@master
with:
version: '2021.10.19'
- run: clj-kondo --lint src:test:integration
test:
needs: [clj_style, clj_kondo]
runs-on: ubuntu-latest
services:
mailhog:
image: mailhog/mailhog:v1.0.0
ports:
- 1025:1025
- 8025:8025
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: '8'
java-package: jdk
architecture: x64
- uses: DeLaGuardo/setup-clojure@master
with:
lein: '2.9.7'
- name: Show versions
run: |
java -version
lein version
- name: Cache dependencies
uses: toyokumo/cache@main
with:
path: |
~/.m2
~/.lein
key: clj-cache-test-${{ hashFiles('project.clj') }}
restore-keys: |
clj-cache-test-
- name: Run tests
run: lein test-integration
- name: Run cloverage
run: |
lein cloverage --codecov
bash <(curl -s https://codecov.io/bash)