-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(ci): check for valid licenses (#191)
- Loading branch information
1 parent
f261ca2
commit fa5d9ca
Showing
6 changed files
with
1,972 additions
and
60 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,23 @@ concurrency: | |
cancel-in-progress: true | ||
|
||
jobs: | ||
test: | ||
license-check: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/[email protected] | ||
- name: Get Node version from NW.js versions manifest | ||
run: echo "NODE_VER=$(curl -s https://nwjs.io/versions | jq -r ".versions[0].components.node")" >> $GITHUB_ENV | ||
- name: Setup Node | ||
uses: actions/[email protected] | ||
with: | ||
node-version: ${{ env.NODE_VER }} | ||
cache: "npm" | ||
- name: Install dependencies | ||
run: npm ci --nwjs-build-type=sdk | ||
- name: License check | ||
run: npm run license-check | ||
tests: | ||
strategy: | ||
matrix: | ||
os: | ||
|
@@ -33,7 +49,7 @@ jobs: | |
run: npm ci --nwjs-build-type=sdk | ||
- name: Run tests | ||
run: npm t | ||
cov: | ||
coverage: | ||
runs-on: ubuntu-22.04 | ||
permissions: | ||
contents: read | ||
|
@@ -51,7 +67,7 @@ jobs: | |
- name: Install dependencies | ||
run: npm ci --nwjs-build-type=sdk | ||
- name: Enable Coverage | ||
run: npm run test:cov | ||
run: npm run test:coverage | ||
- name: Report Coverage | ||
if: always() | ||
uses: davelosert/[email protected] |
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 |
---|---|---|
|
@@ -36,7 +36,7 @@ npm install --save-dev [email protected] | |
npm install --save-dev nw@sdk | ||
``` | ||
|
||
> Optionally set `nwjs_build_type=sdk` in `.npmrc` or `NWJS_BUILD_TYPE=sdk` environment variable. | ||
Or set `nwjs_build_type=sdk` in `.npmrc` or `NWJS_BUILD_TYPE=sdk` environment variable. | ||
|
||
### Specify platform: | ||
|
||
|
Oops, something went wrong.