22 lines
660 B
YAML
22 lines
660 B
YAML
name: Hub component testing
|
|
on: [push, workflow_dispatch]
|
|
|
|
jobs:
|
|
hub-test:
|
|
runs-on: host-arch-x86_64
|
|
steps:
|
|
- name: Clone repository
|
|
run: git clone --revision ${{ gitea.sha }} --depth 1 ${{ gitea.server_url }}/${{ gitea.repository }}
|
|
|
|
- name: Build Hub testing container
|
|
working-directory: IoT-Systems/hub
|
|
run: docker build -t local/hub/${{gitea.sha}} -f Dockerfile-test .
|
|
|
|
- name: Run Hub tests
|
|
working-directory: IoT-Systems
|
|
run: docker run --rm -it local/hub/${{gitea.sha}}
|
|
|
|
- name: Clean up containers
|
|
if: ${{always()}}
|
|
run: docker image rm local/hub/${{gitea.sha}}
|