blob: 35e47310a0b8143d71ae6ed4fd766c03ca56dc20 [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
13 runs-on: [self-hosted, Linux]
14 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
39 runs-on: [self-hosted, Linux]
40 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