blob: cfba18533e172febb72d868eb365f611ecf433ed [file] [log] [blame]
Andrew Geissler7e0e3c02022-02-25 20:34:39 +00001# SPDX-FileCopyrightText: Andrei Gherzan <andrei.gherzan@huawei.com>
2#
3# SPDX-License-Identifier: MIT
4
5name: Compliance
6
7on:
8 pull_request:
9
10jobs:
11 dco:
12 name: DCO
Patrick Williamsdb4c27e2022-08-05 08:10:29 -050013 runs-on: ubuntu-latest
Andrew Geissler7e0e3c02022-02-25 20:34:39 +000014 steps:
15 - name: Checkout the code
16 uses: actions/checkout@v2
17 with:
18 fetch-depth: 0
19 - name: Build a temporary DCO image
20 uses: ./.github/actions/docker-build
21 with:
22 docker_image: dco-check
23 id: ${{ github.event.number }}
24 - name: Do DCO check
25 run: |
26 docker run --rm -v "$GITHUB_WORKSPACE:/work:ro" \
27 --env "BASE_REF=$GITHUB_BASE_REF" \
28 "dco-check-${{ github.event.number }}"
29 - name: Cleanup temporary docker image
30 uses: ./.github/actions/docker-clean-image
31 with:
32 docker_image: dco-check-${{ github.event.number }}
33 if: always()
34 - name: Cleanup dangling docker images
35 uses: ./.github/actions/docker-clean-dangling
36 if: always()
37 reuse:
38 name: reuse
Patrick Williamsdb4c27e2022-08-05 08:10:29 -050039 runs-on: ubuntu-latest
Andrew Geissler7e0e3c02022-02-25 20:34:39 +000040 steps:
41 - name: Checkout the code
42 uses: actions/checkout@v2
43 with:
44 fetch-depth: 0
45 - name: Do reuse check
46 continue-on-error: true
47 uses: fsfe/reuse-action@v1