mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Check source files for license header (#2763)
* check source files for license header Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com> * tweak Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com> * add license header to all relevant source files Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
1 parent
60cdd27d19
commit
2d0609ed24
947 files changed
+19904
No files matched your search
@@ -0,0 +1,38 @@
|
||||
name: Check License Header
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
pull_request:
|
||||
branches:
|
||||
- master
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Set up Golang
|
||||
uses: actions/setup-go@v2
|
||||
- name: Install addlicense
|
||||
run: |
|
||||
export PATH=${PATH}:`go env GOPATH`/bin
|
||||
go get -v -u github.com/google/addlicense
|
||||
- name: Check license headers
|
||||
run: |
|
||||
set -e
|
||||
export PATH=${PATH}:`go env GOPATH`/bin
|
||||
|
||||
addlicense -check -l mit -c "OpenLens Authors" *.ts*
|
||||
|
||||
addlicense -check -l mit -c "OpenLens Authors" src/common/**/*.ts*
|
||||
addlicense -check -l mit -c "OpenLens Authors" src/common/**/*.?css
|
||||
|
||||
addlicense -check -l mit -c "OpenLens Authors" src/main/**/*.ts*
|
||||
|
||||
addlicense -check -l mit -c "OpenLens Authors" src/renderer/**/*.ts*
|
||||
addlicense -check -l mit -c "OpenLens Authors" src/renderer/**/*.?css
|
||||
|
||||
addlicense -check -l mit -c "OpenLens Authors" src/extensions/**/*.ts*
|
||||
|
||||
addlicense -check -l mit -c "OpenLens Authors" extensions/**/*.ts*
|
||||
Reference in new issue
Block a user