Skip to content

Commit

Permalink
CI -> Introduce legal check.
Browse files Browse the repository at this point in the history
  • Loading branch information
reimarstier authored and mbfm committed Dec 14, 2023
1 parent c7cc328 commit 1e0d328
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ on:
# OPENDUT_GH_RUNNER_LARGE: runner labels for large jobs

jobs:
legal:
uses: ./.github/workflows/legal.yaml
# with:
# runs-on: "${{ vars.OPENDUT_GH_RUNNER_SMALL }}"

test:
uses: ./.github/workflows/test.yaml
# with:
Expand Down
32 changes: 32 additions & 0 deletions .github/workflows/legal.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: legal
on:
workflow_call: # allow this workflow to be called from other workflows
inputs:
runs-on:
default: "['ubuntu-latest']"
required: false
type: string

jobs:
legal:
name: Legal Checks
runs-on: ${{ fromJson(inputs.runs-on) }}
steps:
- name: Checkout sources
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab
- name: Rust setup
uses: ./.github/actions/rust-setup
with:
cargo-deny: true

- name: Run license check
run: cargo ci licenses check
- name: Generate License JSON Report
run: cargo ci licenses json
- name: Upload licenses artifact
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce
with:
name: "licenses-${{ github.sha }}"
path: "./target/ci/licenses"
if-no-files-found: error
retention-days: 1

0 comments on commit 1e0d328

Please sign in to comment.