forked from telefonicaid/fiware-orion
-
Notifications
You must be signed in to change notification settings - Fork 43
43 lines (34 loc) · 1009 Bytes
/
unit.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
name: Unit Test
on:
pull_request:
env:
IMAGE_NAME: localhost:5000/orion-ld-test:latest
jobs:
unit:
runs-on: ubuntu-latest
services:
registry:
image: registry:2
ports:
- 5000:5000
mongodb:
image: mongo:4.4
ports:
- 27017:27017
steps:
- uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
with:
driver-opts: network=host
- name: Build and push to local registry
uses: docker/build-push-action@v2
with:
push: true
file: docker/Dockerfile-test
tags: localhost:5000/orion-ld-test:latest
- name: Run unit test
run: |
docker run --rm -v $(pwd):/opt/orion -e CB_FT_VERBOSE=true -e ORIONLD_CACHED_CONTEXT_DIRECTORY=/opt/orion/ldcontexts -e CB_FT_VERBOSE=ON localhost:5000/orion-ld-test:latest -s unit -dqt