From 13903614977dea86c866dd1dd6584f02dec68f8d Mon Sep 17 00:00:00 2001 From: Boris Glimcher <36732377+glimchb@users.noreply.github.com> Date: Wed, 1 May 2024 12:23:52 -0400 Subject: [PATCH] ci: adding test using mockup server Fixes #150 Signed-off-by: Boris Glimcher --- .github/workflows/docker.yml | 17 +++++++++++++++++ README.md | 1 + 2 files changed, 18 insertions(+) create mode 100644 .github/workflows/docker.yml diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml new file mode 100644 index 0000000..bea1b45 --- /dev/null +++ b/.github/workflows/docker.yml @@ -0,0 +1,17 @@ +name: Docker +on: [push, pull_request] + +jobs: + test: + runs-on: ubuntu-latest + services: + bmc: + image: docker.io/dmtf/redfish-mockup-server:latest + ports: + - 8000:8000 + steps: + - uses: actions/checkout@v4 + - uses: docker/setup-qemu-action@v3 + - uses: docker/setup-buildx-action@v3.0.0 + - name: Start containers + run: docker run --rm --network=host docker.io/dmtf/redfish-tacklebox:latest rf_manager_config.py --user root --password 123 --rhost http://localhost:8000 diff --git a/README.md b/README.md index 613f696..7086b48 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,7 @@ Copyright 2019-2024 DMTF. All rights reserved. [![PyPI](https://img.shields.io/pypi/v/redfish-utilities)](https://pypi.org/project/redfish-utilities/) [![Pulls](https://img.shields.io/docker/pulls/dmtf/redfish-tacklebox?style=flat&logo=docker&label=Pulls)](https://hub.docker.com/r/dmtf/redfish-tacklebox) [![Linters](https://github.com/DMTF/Redfish-Tacklebox/actions/workflows/linters.yml/badge.svg)](https://github.com/DMTF/Redfish-Tacklebox/actions/workflows/linters.yml) +[![Docker](https://github.com/DMTF/Redfish-Tacklebox/actions/workflows/docker.yml/badge.svg)](https://github.com/DMTF/Redfish-Tacklebox/actions/workflows/docker.yml) [![GitHub stars](https://img.shields.io/github/stars/DMTF/Redfish-Tacklebox.svg?style=flat-square&label=github%20stars)](https://github.com/DMTF/Redfish-Tacklebox) [![GitHub Contributors](https://img.shields.io/github/contributors/DMTF/Redfish-Tacklebox.svg?style=flat-square)](https://github.com/DMTF/Redfish-Tacklebox/graphs/contributors)