diff --git a/.github/workflows/linters.yml b/.github/workflows/linters.yml new file mode 100644 index 00000000000..d21228b6aac --- /dev/null +++ b/.github/workflows/linters.yml @@ -0,0 +1,18 @@ +name: Fast DDS Linters CI + +on: + pull_request: + types: [opened, synchronize] + +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + +jobs: + uncrustify: + name: uncrustify + runs-on: ubuntu-22.04 + if: ${{ !(github.event_name == 'pull_request') || !contains(github.event.pull_request.labels.*.name, 'conflicts') }} + steps: + - name: Run Uncrustify Linter + uses: eProsima/eProsima-CI/ubuntu/uncrustify@v0