-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add github action to check license header and dependencies license (#66)
* feat(): add github action for license headers and license checker dev dependency Signed-off-by: sBouzols <[email protected]>
- Loading branch information
Showing
16 changed files
with
443 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
header: | ||
license: | ||
spdx-id: MPL-2.0 | ||
pattern: | | ||
Copyright copyright \d{4}, RTE \(http:\/\/www\.rte-france\.com\) | ||
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\/\. | ||
paths-ignore: | ||
- 'dist' | ||
- 'licenses' | ||
- '**/*.md' | ||
- 'LICENSE' | ||
- 'NOTICE' | ||
- 'Dockerfile' | ||
- '**/.*' | ||
- '**/*.txt' | ||
- '**/*.json' | ||
- '**/*.yaml' | ||
- '**/*.yml' | ||
- '**/*.svg' | ||
- '**/*.css' | ||
- '**/*.conf' | ||
|
||
comment: on-failure |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,22 @@ name: CI | |
on: [push] | ||
|
||
jobs: | ||
license-headers: | ||
name: Check licenses headers | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/setup-node@v3 | ||
- name: Checkout sources | ||
uses: actions/checkout@v2 | ||
with: | ||
persist-credentials: false | ||
|
||
- name: Check License Header (Check Mode) | ||
uses: apache/skywalking-eyes/[email protected] | ||
with: | ||
config: .github/config/.licenserc.yaml | ||
|
||
build-and-deploy: | ||
runs-on: ubuntu-latest | ||
|
||
|
@@ -19,6 +35,7 @@ jobs: | |
- name: Install and Build | ||
run: | | ||
npm install | ||
npm run licenses-check | ||
npm run-script test | ||
npm run-script build | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"onlyAllow" : [ | ||
"MPL-2.0", | ||
"MIT", | ||
"BSD-3-Clause", | ||
"BSD-2-Clause", | ||
"0BSD", | ||
"Apache-2.0", | ||
"ISC", | ||
"Apache-Style", | ||
"CC-BY-3.0", | ||
"CC-BY-4.0", | ||
"CC0-1.0", | ||
"MIT AND CC-BY-3.0", | ||
"MIT OR CC0-1.0", | ||
"Artistic-2.0", | ||
"Python-2.0", | ||
"Unlicense" | ||
], | ||
"excludePackages": [] | ||
} |
Oops, something went wrong.