-
Notifications
You must be signed in to change notification settings - Fork 1
65 lines (62 loc) · 1.73 KB
/
clojure.yml
File metadata and controls
65 lines (62 loc) · 1.73 KB
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
name: Clojure CI
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
merge_group:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
name: Check out repository
- uses: actions/setup-node@v4
name: Set up Node
with:
node-version: lts/*
cache: npm
- uses: actions/setup-java@v4
name: Set up Java
with:
distribution: temurin
java-version: 11
- uses: actions/setup-python@v4
name: Set up Python
with:
python-version: 3.12
cache: pip
- uses: actions/cache@v3
name: pre-commit cache
with:
path: ~/.cache/pre-commit
key: ${{ runner.os }}-pre-commit-${{ hashFiles('.pre-commit-config.yaml') }}
- name: Docker cache
uses: ScribeMD/docker-cache@0.3.6
with:
key: ${{ runner.os }}-docker-${{ hashFiles('.pre-commit-config.yaml') }}
- uses: actions/cache@v3
name: Clojure cache
with:
path: |
~/.m2/repository
~/.gitlibs
~/.clojure
~/.cpcache
key: ${{ runner.os }}-clojure-${{ hashFiles('deps.edn') }}
- name: Install Clojure
run: |
curl -L -O https://github.com/clojure/brew-install/releases/latest/download/posix-install.sh
chmod +x posix-install.sh
sudo ./posix-install.sh
rm posix-install.sh
- name: Run pre-commit hooks
run: |
pip install -r requirements.txt
pre-commit run --all-files
- name: Run clj tests
run: bin/test clj
- name: Run cljs tests
run: |
npm install
bin/test cljs