Files
IoT-Systems/.gitea/workflows/hub-test.yaml
hasslesstech 2c1e194b34
All checks were successful
Hub component testing / hub-test (push) Successful in 29s
[P] Add CI for updated Hub component part
2026-03-23 15:43:05 +02:00

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
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}}