-
Notifications
You must be signed in to change notification settings - Fork 108
44 lines (41 loc) · 1.06 KB
/
test.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
name: Test
on:
push:
branches:
- master
pull_request:
schedule:
# monthly
- cron: "0 0 1 * *"
env:
#bump to clear caches
ACTION_CACHE_VERSION: 'v1'
jobs:
test:
strategy:
matrix:
java: ['8', '11', '17']
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ env.ACTION_CACHE_VERSION }}-${{ runner.os }}-maven-${{ hashFiles('**/project.clj') }}-${{ matrix.java }}
restore-keys: |
${{ env.ACTION_CACHE_VERSION }}-${{ runner.os }}-maven-${{ hashFiles('**/project.clj') }}-
- name: Prepare java
uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}
- uses: actions/setup-node@v2
with:
node-version: '10.13.0'
- name: Install clojure tools
uses: DeLaGuardo/[email protected]
with:
lein: 2.9.8
- name: Run tests
run: lein all test