-
Notifications
You must be signed in to change notification settings - Fork 5
50 lines (43 loc) · 1.11 KB
/
ci.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
name: CI
on:
pull_request:
branches: [ "master" ]
workflow_call:
jobs:
build:
strategy:
matrix:
java-version: ["20"]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Prepare java
uses: actions/setup-java@v2
with:
distribution: "adopt"
java-version: ${{ matrix.java-version }}
- name: Setup Clojure
uses: DeLaGuardo/[email protected]
with:
cli: 1.10.3.1040
- name: Checkout
uses: actions/checkout@v2-beta
- name: Cache clojure dependencies
uses: actions/cache@v3
with:
path: |
~/.m2/repository
~/.gitlibs
~/.deps.clj
key: cljdeps-${{ hashFiles('deps.edn') }}
restore-keys: cljdeps-
- name: Run tests not Windows
if: ${{ matrix.os != 'windows-latest' }}
run: make
working-directory: server
shell: bash
- name: Run tests on Windows
if: ${{ matrix.os == 'windows-latest' }}
run: make
working-directory: server
shell: powershell