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:
|
||||
# Runs on pushes targeting the default branch
|
||||
|
|
@ -9,16 +9,26 @@ on:
|
|||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Set up bun
|
||||
uses: oven-sh/setup-bun@v1
|
||||
with:
|
||||
bun-version: latest
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
- name: Setup and Install dependencies
|
||||
run: bun run setup
|
||||
- name: run production mode
|
||||
run: bun run prod
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-latest, macos-latest, windows-latest]
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Node.js
|
||||
uses: actions/setup-node@v4
|
||||
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