-
-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
12 additions
and
16 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 |
---|---|---|
|
@@ -8,8 +8,8 @@ jobs: | |
test: | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, windows-latest, macos-latest] | ||
node: [18] | ||
os: [ ubuntu-latest, windows-latest, macos-latest ] | ||
node: [ 18 ] | ||
runs-on: ${{matrix.os}} | ||
steps: | ||
- name: Set up Git repository | ||
|
@@ -23,21 +23,15 @@ jobs: | |
- name: Setup pnpm | ||
uses: pnpm/[email protected] | ||
- name: Install | ||
run: npm ci | ||
run: | | ||
pnpm whoami | ||
pnpm i | ||
- name: Compile | ||
run: npm run compile | ||
- name: Init window e2e test subpackage | ||
run: npm --prefix e2e/window-test ci | ||
- name: Generate coverage report | ||
- name: Run tests | ||
uses: GabrielBB/xvfb-action@v1 | ||
with: | ||
run: | | ||
npx playwright install --with-deps | ||
npm test | ||
- name: Run Electron e2e test subpackage | ||
uses: GabrielBB/xvfb-action@v1 | ||
with: | ||
run: npm --prefix e2e/electron-test cit | ||
run: pnpm run coverage | ||
|
||
deploy: | ||
needs: | ||
|
@@ -55,15 +49,17 @@ jobs: | |
- name: Setup pnpm | ||
uses: pnpm/[email protected] | ||
- name: Install | ||
run: npm ci | ||
run: | | ||
pnpm whoami | ||
pnpm i | ||
- name: Run typedoc | ||
run: npm run typedoc | ||
run: pnpm --filter @nut-tree/nut-js run typedoc | ||
- name: Publish typedocs to GitHub Pages | ||
uses: peaceiris/[email protected] | ||
with: | ||
deploy_key: ${{ secrets.API_DOC_DEPLOY_KEY }} | ||
external_repository: nut-tree/apidoc | ||
publish_dir: ./docs | ||
publish_dir: ./core/nut.js/docs | ||
- name: Publish tagged release to npm | ||
run: npm publish | ||
env: | ||
|