diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2022-08-09 15:29:51 +0200 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2022-08-09 15:30:00 +0200 |
commit | 595602ac216851c886ceadace2b204c6776ac947 (patch) | |
tree | 968585badcf560d36a3ffa39ef3c7443f0db2a25 | |
parent | 5faa4abc9f957e53ea0e20ad03c8abca201b67b3 (diff) |
Add license-header check job
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
-rw-r--r-- | .github/workflows/ci.yml | 7 | ||||
-rw-r--r-- | .licenserc.json | 8 |
2 files changed, 15 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cc060ac..df1c5c0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -138,6 +138,12 @@ jobs: run: pip install gitlint - run: gitlint --commits $(git merge-base origin/master HEAD).. + license: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - name: Check License Lines + uses: kt3k/license_checker@v1.0.6 ci: name: CI if: ${{ success() }} @@ -148,6 +154,7 @@ jobs: - deny - doc - fmt + - license - test runs-on: ubuntu-latest steps: diff --git a/.licenserc.json b/.licenserc.json new file mode 100644 index 0000000..a59891d --- /dev/null +++ b/.licenserc.json @@ -0,0 +1,8 @@ +{ + "**/*.rs": [ + "This Source Code Form is subject to the terms of the Mozilla Public", + "License, v. 2.0. If a copy of the MPL was not distributed with this", + "file, You can obtain one at http://mozilla.org/MPL/2.0/." + ] +} + |