-
Notifications
You must be signed in to change notification settings - Fork 54
89 lines (73 loc) · 2 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
# A workflow run is made up of one or more jobs that can run
# sequentially or in parallel
on: [push, pull_request]
name: Run tests
jobs:
tests:
name: Tests
strategy:
matrix:
# TODO add windows-latest
os: [ubuntu-latest, macOS-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Prepare java
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '11'
# - uses: joschi/setup-jdk@v2
# with:
# java-version: '11' # The OpenJDK version to make available on the path
# architecture: 'x64' # defaults to 'x64'
- name: Install clojure tools
uses: DeLaGuardo/[email protected]
with:
cli: 1.11.1.1208
- name: Install node
uses: actions/setup-node@v3
with:
node-version: '16'
- name: Install vega-cli
run: |
npm install -g vega vega-lite vega-cli
- name: Install babashka
uses: turtlequeue/[email protected]
with:
babashka-version: 0.7.0
- name: Install makejack
run: |
curl -O https://raw.githubusercontent.com/hugoduncan/makejack/6966696979c9b9c0c97e54f82a5d4096e4105240/mj
chmod 755 mj
mv mj /usr/local/bin
- name: Setup clojure-lsp
uses: clojure-lsp/setup-clojure-lsp@v1
with:
clojure-lsp-version: 2022.12.09-15.51.10
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0 # all commits for git-rev-count
- name: poly check
run: |
set -x
clojure -M:poly check
- name: build and install jar
run: |
set -x
(
cd projects/criterium
clojure -T:build build :verbose true
)
- name: poly test :all
run: |
set -x
mj compile-agent-cpp
mj javac-agent
clojure -M:poly test :all
- name: lint
run: |
set -x
clojure-lsp diagnostics
clojure-lsp clean-ns --dry
clojure-lsp format --dry