Skip to content

Fixed issue #1535 #2295

Fixed issue #1535

Fixed issue #1535 #2295

Workflow file for this run

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