From f5d57a8c223141ed5459b1d6c2947783f855fd91 Mon Sep 17 00:00:00 2001 From: Ayushman Chhabra <14110965+ayushmanchhabra@users.noreply.github.com> Date: Tue, 9 Jul 2024 19:20:47 +0530 Subject: [PATCH] chore(ci): check for valid licenses --- .github/workflows/e2e.yml | 15 +++++++++++++++ package.json | 2 +- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 774ca2dd..936f1040 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -10,6 +10,21 @@ concurrency: cancel-in-progress: true jobs: + license: + runs-on: ubuntu-22.04 + steps: + - name: Checkout repository + uses: actions/checkout@v4.1.7 + - name: Setup Volta + uses: volta-cli/action@v4.1.1 + - name: Node.js version + run: node -v + - name: npm version + run: npm -v + - name: Install dependencies + run: npm ci + - name: License check + run: npm run license-check e2e: strategy: matrix: diff --git a/package.json b/package.json index 3b5487bf..7dac3e5c 100644 --- a/package.json +++ b/package.json @@ -49,7 +49,7 @@ "test": "vitest run --coverage", "test:cov": "vitest --coverage.enabled true", "demo": "cd test/fixture && node demo.js", - "tmp": "vitest --coverage.enabled true" + "license-check": "jsgl -l ." }, "devDependencies": { "@stylistic/eslint-plugin-js": "^2.3.0",