blob: ec489f00951f3ba5aa93018466fd8cd050dc1f3c [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
Patrick Williams7784c422022-11-17 07:29:11 -060016 uses: actions/checkout@v3
Andrew Geissler7e0e3c02022-02-25 20:34:39 +000017 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
Patrick Williams7784c422022-11-17 07:29:11 -060042 uses: actions/checkout@v3
Andrew Geissler7e0e3c02022-02-25 20:34:39 +000043 with:
44 fetch-depth: 0
45 - name: Do reuse check
46 continue-on-error: true
47 uses: fsfe/reuse-action@v1