-
Notifications
You must be signed in to change notification settings - Fork 674
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
license check workflow added (#8206)
<!-- Thank you for your contribution. Before making a PR, please read our contributing guidelines at https://github.com/DevExpress/testcafe/blob/master/CONTRIBUTING.md#code-contribution We recommend creating a *draft* PR, so that you can mark it as 'ready for review' when you are done. --> ## Purpose Add a workflow to check production dependencies licenses. ## Approach Create a new workflow file and add it in artifacts deploy ## References Correct licenses run: https://github.com/Testing-and-Learning/testcafe/actions/runs/9413544636 Incorrect licenses run: https://github.com/Testing-and-Learning/testcafe/actions/runs/9413057523/job/25929056940 ## Pre-Merge TODO - [ ] Write tests for your proposed changes - [ ] Make sure that existing tests do not fail --------- Co-authored-by: Bayheck <[email protected]>
- Loading branch information
Showing
3 changed files
with
40 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Check Licenses | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
sha: | ||
description: "The test commit SHA or ref" | ||
required: true | ||
default: "master" | ||
merged_sha: | ||
description: "The merge commit SHA" | ||
deploy_run_id: | ||
description: "The ID of a deployment workspace run with artifacts" | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: latest | ||
|
||
- name: Install dependencies | ||
run: npm install | ||
|
||
- name: Run Gulp build | ||
run: npx gulp build | ||
|
||
- name: Pack the application | ||
run: npm pack | ||
|
||
- name: Install the application and check licenses | ||
run: mkdir temp && cd temp && npm init -y && npm install ../*.tgz && npx gulp check-licenses |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters