-
Notifications
You must be signed in to change notification settings - Fork 5
69 lines (54 loc) · 1.68 KB
/
test.yaml
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
66
67
68
69
name: Testing
on:
push:
branches:
- 'master'
tags:
- '**'
pull_request:
jobs:
test:
name: Build and test
strategy:
matrix:
operating-system: [ubuntu-latest, macOS-latest]
runs-on: ${{ matrix.operating-system }}
steps:
- name: Checkout
uses: actions/checkout@master
- name: Setup Java
uses: actions/setup-java@v2
with:
java-version: '12'
distribution: 'zulu'
- name: Setup Clojure tools
uses: DeLaGuardo/[email protected]
with:
cli: 1.10.1.693 # Clojure CLI based on tools.deps
lein: 2.9.1 # or use 'latest' to always provision latest version of leiningen
boot: 2.8.3 # or use 'latest' to always provision latest version of boot
- name: Run Clojure code on Linux and MacOS
if: ${{ matrix.os != 'windows-latest' }}
run: clojure -e "(+ 1 1)"
shell: bash
- name: Run Clojure code on Windows
if: ${{ matrix.os == 'windows-latest' }}
run: clojure -e "(+ 1 1)"
shell: powershell
- run: lein -v
- run: lein deps
- run: lein check
- run: lein compile
- run: lein uberjar
- name: Setup test dependencies on Ubuntu
run: sudo apt install -y graphviz
if: ${{ matrix.operating-system == 'ubuntu-latest' }}
- name: Setup test dependencies on macOS
run: brew install graphviz
if: ${{ matrix.operating-system == 'macOS-latest' }}
- name: Run regression tests on Ubuntu
run: sh ./test.sh
if: ${{ matrix.operating-system == 'ubuntu-latest' }}
- name: Run regression tests on macOS
run: sh ./test.sh
if: ${{ matrix.operating-system == 'macOS-latest' }}