-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (37 loc) · 1.28 KB
/
build-pillars.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
name: Build and test Clojure
on: [push]
jobs:
clojure:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Prepare java
uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: '8'
- name: Install clojure tools
uses: DeLaGuardo/[email protected]
with:
cli: 1.11.1.1155 # Clojure CLI based on tools.deps
lein: 2.9.10 # Leiningen
# (optional) To avoid rate limit errors please provide github token
github-token: ${{ secrets.GITHUB_TOKEN }}
# - name: Set up xvfb
# run: |
# sudo apt-get install xvfb libxrender1 libxtst6 libxi6
# Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
# - name: Run sketch
# run: |
# CI_RUN=true DISPLAY=':99.0' lein run pillars
- name: Install clj-kondo
uses: DeLaGuardo/setup-clj-kondo@afc83dbbf4e7e32e04649e29dbf30668d30e9e3e
with:
version: '2023.03.17'
- name: Lint
run: |
clj-kondo --fail-level error --lint src --config '{:output {:pattern "::{{level}} file={{filename}},line={{row}},col={{col}}::{{message}}"}}'
- name: Run tests
run: |
lein test