Skip to content

Commit 2f75d6c

Browse files
committed
add github workflow
1 parent 25b0e6e commit 2f75d6c

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.github/workflows/ci.yml

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: build
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
runs-on: windows-latest
8+
env:
9+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
10+
steps:
11+
- name: Git checkout
12+
uses: actions/checkout@v4
13+
with:
14+
fetch-depth: 1
15+
submodules: 'true'
16+
17+
- name: Cache deps
18+
uses: actions/cache@v2
19+
id: cache-deps
20+
with:
21+
path: ~/.m2/repository
22+
key: ${{ runner.os }}-maven-${{ hashFiles('deps.edn') }}
23+
restore-keys: ${{ runner.os }}-maven-
24+
25+
- name: Prepare java
26+
uses: actions/setup-java@v2
27+
with:
28+
distribution: 'adopt-hotspot'
29+
java-version: '19'
30+
31+
- name: Install clojure tools
32+
uses: DeLaGuardo/[email protected]
33+
with:
34+
cli: latest
35+
bb: latest
36+
37+
- name: Setup tmate session
38+
uses: mxschmitt/action-tmate@v3
39+
40+
- name: Run tests
41+
run: |
42+
bb ci:test

0 commit comments

Comments
 (0)