Skip to content

Commit

Permalink
chore(ci): check for valid licenses (#191)
Browse files Browse the repository at this point in the history
  • Loading branch information
ayushmanchhabra authored Jul 14, 2024
1 parent f261ca2 commit fa5d9ca
Show file tree
Hide file tree
Showing 6 changed files with 1,972 additions and 60 deletions.
22 changes: 19 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand All @@ -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]
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down
Loading

0 comments on commit fa5d9ca

Please sign in to comment.