aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/compliance.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/compliance.yml')
-rw-r--r--.github/workflows/compliance.yml47
1 files changed, 47 insertions, 0 deletions
diff --git a/.github/workflows/compliance.yml b/.github/workflows/compliance.yml
new file mode 100644
index 0000000..ec489f0
--- /dev/null
+++ b/.github/workflows/compliance.yml
@@ -0,0 +1,47 @@
+# SPDX-FileCopyrightText: Andrei Gherzan <andrei.gherzan@huawei.com>
+#
+# SPDX-License-Identifier: MIT
+
+name: Compliance
+
+on:
+ pull_request:
+
+jobs:
+ dco:
+ name: DCO
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout the code
+ uses: actions/checkout@v3
+ with:
+ fetch-depth: 0
+ - name: Build a temporary DCO image
+ uses: ./.github/actions/docker-build
+ with:
+ docker_image: dco-check
+ id: ${{ github.event.number }}
+ - name: Do DCO check
+ run: |
+ docker run --rm -v "$GITHUB_WORKSPACE:/work:ro" \
+ --env "BASE_REF=$GITHUB_BASE_REF" \
+ "dco-check-${{ github.event.number }}"
+ - name: Cleanup temporary docker image
+ uses: ./.github/actions/docker-clean-image
+ with:
+ docker_image: dco-check-${{ github.event.number }}
+ if: always()
+ - name: Cleanup dangling docker images
+ uses: ./.github/actions/docker-clean-dangling
+ if: always()
+ reuse:
+ name: reuse
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout the code
+ uses: actions/checkout@v3
+ with:
+ fetch-depth: 0
+ - name: Do reuse check
+ continue-on-error: true
+ uses: fsfe/reuse-action@v1