-
-
Notifications
You must be signed in to change notification settings - Fork 19
93 lines (86 loc) · 2.13 KB
/
tests.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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
name: Tests
on:
push:
branches:
- master
pull_request:
jobs:
kondo:
runs-on: ubuntu-22.04
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- name: Setup Java & Clojure
uses: ./.github/actions/setup-clojure
with:
cache-key: kondo
- name: Install Kondo
uses: DeLaGuardo/[email protected]
with:
clj-kondo: "2023.09.07"
- run: clj-kondo --version
- name: Copy Kondo config from deps
run: >-
clj-kondo
--copy-configs
--dependencies
--lint "$(clojure -A:dev -Spath)"
--skip-lint
--parallel
- name: Run clj-kondo
run: >-
clj-kondo
--parallel
--lint src test
tests:
runs-on: ubuntu-20.04
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- name: Setup Java & Clojure
uses: ./.github/actions/setup-clojure
with:
cache-key: tests
- run: clojure -X:dev:test
name: Run tests
env:
CI: TRUE
whitespace-linter:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- name: Setup Java & Clojure
uses: ./.github/actions/setup-clojure
with:
cache-key: whitespace-linter
- run: clojure -T:whitespace-linter
name: Run whitespace linter
check:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- name: Setup Java & Clojure
uses: ./.github/actions/setup-clojure
with:
cache-key: check
- run: clojure -M:check
name: Check namespaces
codecov:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- name: Setup Java & Clojure
uses: ./.github/actions/setup-clojure
with:
cache-key: codecov
- run: clojure -X:dev:test-h2:cloverage
name: Run tests with Cloverage
- name: Upload results to codecov.io
uses: codecov/codecov-action@v3
with:
files: ./target/coverage/codecov.json
codespell:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- uses: codespell-project/actions-codespell@master