Skip to content

Commit 994e28f

Browse files
authored
Add license checking to the CI (#52)
1 parent bb1ffbf commit 994e28f

File tree

10 files changed

+447
-991
lines changed

10 files changed

+447
-991
lines changed

.github/workflows/ci.yaml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
strategy:
1717
matrix:
1818
node-version: [12.x]
19-
package: [ts/kpt-functions, ts/create-kpt-functions, ts/init-package, ts/hello-world, ts/demo-functions]
19+
package: [kpt-functions, create-kpt-functions, init-package, hello-world, demo-functions]
2020
steps:
2121
- uses: actions/checkout@v1
2222
- name: Use Node.js ${{ matrix.node-version }}
@@ -26,11 +26,18 @@ jobs:
2626
registry-url: 'https://npm.pkg.github.com'
2727
- name: Install and test NPM packages
2828
run: |
29-
cd ${{ matrix.package }}
29+
cd ts/${{ matrix.package }}
3030
npm ci
3131
npm test
3232
env:
3333
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34+
- name: Check linceses
35+
if: matrix.package == 'kpt-functions' ||
36+
matrix.package == 'create-kpt-functions' ||
37+
matrix.package == 'demo-functions'
38+
run: |
39+
cd ts/${{ matrix.package }}
40+
npm run lint-license
3441
3542
go-ci:
3643
runs-on: ubuntu-latest

ts/create-kpt-functions/js-green-licenses.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)