diff --git a/.github/workflows/linters.yml b/.github/workflows/linters.yml new file mode 100644 index 0000000..fdf8daf --- /dev/null +++ b/.github/workflows/linters.yml @@ -0,0 +1,22 @@ +name: Linters +on: [push, pull_request] + +jobs: + ruff-lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: '3.x' + - run: pip install ruff + # - run: ruff check . + + docker-lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: hadolint/hadolint-action@v3.1.0 + with: + recursive: true + ignore: DL3018,DL3008,DL3013 diff --git a/README.md b/README.md index 4ea5725..4160374 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,8 @@ Copyright 2019-2024 DMTF. All rights reserved. +[![Linters](https://github.com/DMTF/Redfish-Tacklebox/actions/workflows/linters.yml/badge.svg)](https://github.com/DMTF/Redfish-Tacklebox/actions/workflows/linters.yml) + ## About Redfish Tacklebox contains a set of Python3 utilities to perform common management operations with a Redfish service.