-
Notifications
You must be signed in to change notification settings - Fork 1
62 lines (52 loc) · 1.49 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
name: Vessel Tests
on: push
jobs:
unit-test:
runs-on: ubuntu-latest
container:
image: circleci/clojure:openjdk-11-tools-deps-1.10.1.502
options: -u 1001:115
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Cache Maven deps
uses: actions/cache@v1
env:
cache-name: maven-deps
with:
path: /__w/vessel/vessel/?/.m2
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('deps.edn') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Run unit tests
run: 'make unit-test'
integration-test:
runs-on: ubuntu-latest
container:
image: circleci/clojure:openjdk-11-tools-deps-1.10.1.502
env:
VESSEL_TEST_REGISTRY: registry
options: -u 1001:115
services:
registry:
image: registry:2
ports:
- 5000:5000
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Cache Maven deps
uses: actions/cache@v1
env:
cache-name: maven-deps
with:
path: /__w/vessel/vessel/?/.m2
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('deps.edn') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Run integration tests
run: 'make integration-test'