add electron build test
This commit is contained in:
parent
45b31d704e
commit
c039bce0c3
1 changed files with 21 additions and 11 deletions
36
.github/workflows/build-test.yml
vendored
36
.github/workflows/build-test.yml
vendored
|
|
@ -1,4 +1,4 @@
|
||||||
name: Test Production Build
|
name: Test Electron App Production Build
|
||||||
|
|
||||||
on:
|
on:
|
||||||
# Runs on pushes targeting the default branch
|
# Runs on pushes targeting the default branch
|
||||||
|
|
@ -9,16 +9,26 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
strategy:
|
||||||
- name: Set up bun
|
matrix:
|
||||||
uses: oven-sh/setup-bun@v1
|
os: [ubuntu-latest, macos-latest, windows-latest]
|
||||||
with:
|
|
||||||
bun-version: latest
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
- name: Setup and Install dependencies
|
|
||||||
run: bun run setup
|
- name: Set up Node.js
|
||||||
- name: run production mode
|
uses: actions/setup-node@v4
|
||||||
run: bun run prod
|
with:
|
||||||
|
node-version: '20'
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: npm install
|
||||||
|
|
||||||
|
- name: Build Electron app
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
|
||||||
|
run: npm run build
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue