initialize Electron desktop app and remove unused files
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
name: Build
|
||||
on:
|
||||
push:
|
||||
pull_request:
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 24
|
||||
cache: npm
|
||||
- run: npm ci --ignore-scripts
|
||||
- run: npm rebuild node-pty
|
||||
- run: npm run harness:check
|
||||
- run: npm run check:orphans
|
||||
- run: npm run test:coverage
|
||||
- run: npm run build
|
||||
@@ -0,0 +1,40 @@
|
||||
name: Electron packages
|
||||
on:
|
||||
workflow_dispatch:
|
||||
jobs:
|
||||
package:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
include:
|
||||
- os: macos-latest
|
||||
artifacts: |
|
||||
release/*.dmg
|
||||
release/*.zip
|
||||
- os: windows-latest
|
||||
artifacts: release/*.exe
|
||||
- os: ubuntu-latest
|
||||
artifacts: |
|
||||
release/*.AppImage
|
||||
release/*.deb
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 24
|
||||
cache: npm
|
||||
- run: npm ci --ignore-scripts
|
||||
- run: npm rebuild node-pty
|
||||
- run: npm run harness:check
|
||||
- run: npm run electron:setup
|
||||
- run: npm run dist
|
||||
env:
|
||||
CSC_IDENTITY_AUTO_DISCOVERY: 'false'
|
||||
- uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: hermes-desktop-${{ matrix.os }}
|
||||
path: ${{ matrix.artifacts }}
|
||||
if-no-files-found: error
|
||||
@@ -0,0 +1,23 @@
|
||||
name: macOS Verification
|
||||
on:
|
||||
workflow_dispatch:
|
||||
jobs:
|
||||
verify:
|
||||
runs-on: macos-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 24
|
||||
cache: npm
|
||||
- run: npm ci --ignore-scripts
|
||||
- run: npm rebuild node-pty
|
||||
- run: npm run harness:check
|
||||
- run: npm run test:coverage
|
||||
- run: npx playwright install chromium
|
||||
- run: npm run test:e2e
|
||||
- run: npm run build
|
||||
- run: npm run electron:setup
|
||||
- run: npm run test:electron
|
||||
@@ -0,0 +1,20 @@
|
||||
name: Playwright
|
||||
on:
|
||||
push:
|
||||
pull_request:
|
||||
jobs:
|
||||
browser:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 24
|
||||
cache: npm
|
||||
- run: npm ci --ignore-scripts
|
||||
- run: npm rebuild node-pty
|
||||
- run: npx playwright install --with-deps chromium
|
||||
- run: npm run test:e2e
|
||||
- run: npm run build
|
||||
- run: npm run electron:setup
|
||||
- run: xvfb-run --auto-servernum npm run test:electron
|
||||
Reference in New Issue
Block a user