[P] Add CI for updated Hub component part
Some checks failed
Hub component testing / hub-test (push) Failing after 29s

This commit is contained in:
2026-03-23 15:19:19 +02:00
parent 30f81ec1ae
commit a69203ed6c
5 changed files with 79 additions and 1 deletions

View File

@@ -0,0 +1,21 @@
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
run: docker build -t local/hub/${{gitea.sha}} -f hub/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}}