Skip to content

Commit eae5035

Browse files
Merge pull request #46 from Your-Ehsan/development
chore(actions): added new pr-check action
2 parents 3667ee1 + 831385e commit eae5035

File tree

3 files changed

+127
-4
lines changed

3 files changed

+127
-4
lines changed

.github/labeler.yml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# Automatically assigns labels to PRs based on file changes
2+
3+
# General Labels
4+
'🟢 dependencies':
5+
- 'package.json'
6+
- 'pnpm-lock.yaml'
7+
- 'yarn.lock'
8+
- 'npm-shrinkwrap.json'
9+
10+
'changelog':
11+
- 'CHANGELOG.md'
12+
13+
# ⚡ Electron-Specific Labels
14+
'electron-main':
15+
- 'src/main/**'
16+
- 'electron/**'
17+
18+
'electron-renderer':
19+
- 'src/renderer/**'
20+
- 'src/components/**'
21+
- 'src/pages/**'
22+
23+
# UI & Frontend
24+
'🎨 ui':
25+
- 'src/renderer/assets/**'
26+
- 'src/styles/**'
27+
- 'src/css/**'
28+
29+
# Build & Configuration
30+
'🏗️ build':
31+
- 'webpack.config.js'
32+
- 'vite.config.js'
33+
- 'babel.config.js'
34+
- 'tsconfig.json'
35+
- 'esbuild.config.js'
36+
- '.eslintrc.js'
37+
- '.prettierrc'
38+
- 'scripts/**'
39+
40+
# Testing
41+
'🧪 tests':
42+
- 'tests/**'
43+
- '__tests__/**'
44+
- 'jest.config.js'
45+
- 'vitest.config.js'
46+
47+
# CI/CD & GitHub Actions
48+
'🛠️ ci/cd':
49+
- '.github/workflows/**'
50+
- '.github/labeler.yml'
51+
52+
# Documentation
53+
'📄 docs':
54+
- 'docs/**'
55+
- 'README.md'
56+
- 'CONTRIBUTING.md'
57+
- 'docs/**/*.md'
58+
59+
# Hotfix
60+
'🔥 hotfix':
61+
- 'src/**'
62+
- 'electron/**'
63+
- 'package.json'

.github/workflows/pr-check.yml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: Validate Windows Build on PR
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- master # Runs only if the PR targets the master branch
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
validate-build:
13+
runs-on: windows-latest
14+
15+
steps:
16+
- name: Check out Git repository
17+
uses: actions/checkout@v4
18+
with:
19+
fetch-depth: 0 # Required for changelog generation
20+
21+
- name: Install pnpm
22+
uses: pnpm/action-setup@v4
23+
with:
24+
version: latest
25+
26+
- name: Install Node.js
27+
uses: actions/setup-node@v4
28+
with:
29+
node-version: 22.x # Ensures correct versioning
30+
cache: 'pnpm'
31+
32+
- name: Get pnpm store directory
33+
shell: bash
34+
id: pnpm_cache_path
35+
run: echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
36+
37+
- name: Setup pnpm cache
38+
uses: actions/cache@v4
39+
with:
40+
path: ${{ steps.pnpm_cache_path.outputs.STORE_PATH }}
41+
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
42+
restore-keys: |
43+
${{ runner.os }}-pnpm-
44+
45+
- name: Install Dependencies
46+
run: pnpm install --frozen-lockfile
47+
48+
- name: Build
49+
env:
50+
ELECTRON_BUILDER_ALLOWED_EXECUTABLES: '*'
51+
run: pnpm build
52+
53+
# - name: Verify Build Output
54+
# shell: bash
55+
# run: |
56+
# if [[ -z $(find dist -type f -name "*.exe") ]]; then
57+
# echo "❌ Build output not found! Skipping release."
58+
# exit 1
59+
# fi
60+
# echo "✅ Build output found!"

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,10 @@ jobs:
6060
- name: Install Dependencies
6161
run: pnpm install --frozen-lockfile
6262

63-
- name: Generate Release Notes
64-
run: |
65-
pnpm add -g conventional-changelog-cli
66-
conventional-changelog -p angular -i CHANGELOG.md -s -r 0
63+
# - name: Generate Release Notes
64+
# run: |
65+
# pnpm add -g conventional-changelog-cli
66+
# conventional-changelog -p angular -i CHANGELOG.md -s -r 0
6767

6868
- name: Build
6969
env:

0 commit comments

Comments
 (0)