From 90d81ee7dfa50f7b8fbcc5a31c2aee56566cdbbc Mon Sep 17 00:00:00 2001 From: Icedsoda <29167146+1cedsoda@users.noreply.github.com> Date: Tue, 27 May 2025 17:31:34 +0200 Subject: [PATCH] Add Electron Pipeline --- .github/workflows/electron.yml | 41 ++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/electron.yml diff --git a/.github/workflows/electron.yml b/.github/workflows/electron.yml new file mode 100644 index 00000000..7554e43b --- /dev/null +++ b/.github/workflows/electron.yml @@ -0,0 +1,41 @@ +name: Electron + +on: + push: + branches: + - "**" + pull_request: + branches: + - "*" + +jobs: + build-electron: + runs-on: ubuntu-latest + defaults: + run: + working-directory: electron + + steps: + - uses: actions/checkout@v4 + + - name: Cache NPM dependencies + uses: actions/cache@v3 + with: + path: | + ~/.npm + node_modules/ + key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-npm- + + - name: Install + run: npm i + + - name: Lint + run: npm run lint + + - name: Test + run: npm run test + + - name: Build + run: npm run package