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> * 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>
39 lines
1.1 KiB
YAML
39 lines
1.1 KiB
YAML
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*
|