Skip to content

Commit

Permalink
added workflow to check frontend build
Browse files Browse the repository at this point in the history
  • Loading branch information
Dushyant Bhardwaj authored and Dushyant Bhardwaj committed Dec 29, 2024
1 parent a1780ee commit 376a439
Show file tree
Hide file tree
Showing 2 changed files with 83 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Merge Check

on:
pull_request_review:
types: [submitted]

jobs:
build-tauri:
permissions:
contents: write
strategy:
fail-fast: true
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4

- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y libwebkit2gtk-4.0-dev libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: lts/*
cache: 'npm'

- name: Install Rust
uses: dtolnay/rust-toolchain@stable

- name: Rust cache
uses: swatinem/rust-cache@v2
with:
workspaces: './src-tauri -> target'

- name: Install frontend dependencies
run: |
cd frontend
npm install
- name: Build Tauri
uses: tauri-apps/tauri-action@v0
with:
projectPath: frontend
env:
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}
TAURI_SIGNING_PRIVATE_KEY_PASSWORD : ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }}
37 changes: 37 additions & 0 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 376a439

Please sign in to comment.