Skip to content

Commit

Permalink
chore(ci): check for valid licenses
Browse files Browse the repository at this point in the history
  • Loading branch information
ayushmanchhabra committed Jul 9, 2024
1 parent d31e5e8 commit f5d57a8
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
15 changes: 15 additions & 0 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit f5d57a8

Please sign in to comment.