mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
check source files for license header
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
parent
f4ff28e51c
commit
e11c653add
41
.github/workflows/license-header.yml
vendored
Normal file
41
.github/workflows/license-header.yml
vendored
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
name: license-header
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
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/main/**/*.?css
|
||||||
|
|
||||||
|
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" src/extensions/**/*.?css
|
||||||
|
|
||||||
|
addlicense -check -l mit -c "OpenLens Authors" extensions/**/*.ts*
|
||||||
|
addlicense -check -l mit -c "OpenLens Authors" extensions/**/*.?css
|
||||||
Loading…
Reference in New Issue
Block a user