From c039bce0c3cd4be88c4eace16b338aeb71df20cb Mon Sep 17 00:00:00 2001 From: bakedpotatolord Date: Sat, 3 May 2025 10:44:32 -0600 Subject: [PATCH] add electron build test --- .github/workflows/build-test.yml | 36 ++++++++++++++++++++------------ 1 file changed, 23 insertions(+), 13 deletions(-) diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml index f8896138..8c8ab247 100644 --- a/.github/workflows/build-test.yml +++ b/.github/workflows/build-test.yml @@ -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 +