-
Notifications
You must be signed in to change notification settings - Fork 120
63 lines (50 loc) · 1.39 KB
/
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
name: Tests
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Prepare java
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '8'
- name: Install clojure tools
uses: DeLaGuardo/[email protected]
with:
cli: latest
lein: 2.9.10
bb: latest
clj-kondo: 2023.05.18
cljfmt: 0.10.4
- name: Execute tests
working-directory: ./cljfmt
run: lein test
- name: Execute babashka tests
run: bb test
- name: Check formatting
run: bb fmt
- name: Lint sourcecode
run: bb lint
- name: Install cljfmt dependency
working-directory: ./cljfmt
run: lein install
- name: Install GraalVM
uses: graalvm/setup-graalvm@v1
with:
version: '22.3.2'
java-version: '17'
components: 'native-image'
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Install native dev tools
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get -y install build-essential zlib1g-dev
- name: Build executable
working-directory: ./cljfmt
run: lein native-image
- name: Run smoke tests
run: bb smoke