Skip to content

Commit

Permalink
Update GitHub Actions workflow to trigger on pull requests and specif…
Browse files Browse the repository at this point in the history
…y paths for backend and frontend
  • Loading branch information
rahulharpal1603 committed Feb 7, 2025
1 parent 44111d6 commit faa1d68
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions .github/workflows/merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,12 @@ name: Merge Check

on:
pull_request_review:
# Trigger this workflow when a pull request review is submitted
# Trigger this workflow when a pull request review is submitted
types: [submitted]
pull_request:
paths:
- "backend/**"
- "frontend/**"

jobs:
build-tauri:
Expand All @@ -27,22 +31,22 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: lts/*
cache: 'npm'
cache: "npm"

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

- name: Rust cache
uses: swatinem/rust-cache@v2
with:
# Cache Rust build artifacts for faster build times
workspaces: './src-tauri -> target'
# Cache Rust build artifacts for faster build times
workspaces: "./src-tauri -> target"

- name: Install frontend dependencies
run: |
cd frontend
npm install
- name: Build Tauri
uses: tauri-apps/tauri-action@v0
with:
Expand All @@ -51,4 +55,4 @@ jobs:
env:
# Use secrets for signing the Tauri app
TAURI_SIGNING_PRIVATE_KEY: dW50cnVzdGVkIGNvbW1lbnQ6IHJzaWduIGVuY3J5cHRlZCBzZWNyZXQga2V5ClJXUlRZMEl5NlF2SjE3cWNXOVlQQ0JBTlNITEpOUVoyQ3ZuNTdOSkwyNE1NN2RmVWQ1a0FBQkFBQUFBQUFBQUFBQUlBQUFBQU9XOGpTSFNRd0Q4SjNSbm5Oc1E0OThIUGx6SS9lWXI3ZjJxN3BESEh1QTRiQXlkR2E5aG1oK1g0Tk5kcmFzc0IvZFZScEpubnptRkxlbDlUR2R1d1Y5OGRSYUVmUGoxNTFBcHpQZ1dSS2lHWklZVHNkV1Byd1VQSnZCdTZFWlVGOUFNVENBRlgweUU9Cg==
TAURI_SIGNING_PRIVATE_KEY_PASSWORD : pass
TAURI_SIGNING_PRIVATE_KEY_PASSWORD: pass

0 comments on commit faa1d68

Please sign in to comment.