-
Notifications
You must be signed in to change notification settings - Fork 1
chore(actions): added new pr-check action #46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
30815a6
chore(actions): added new pr-check action
developerEhsan aa6651c
Update .github/workflows/pr-check.yml
developerEhsan 69c9af2
Merge branch 'master' into development
developerEhsan b0bf102
chore(action): pr-check yml os changed to windows
developerEhsan fc0d0c0
chore(merge): Merge branch 'development' of https://github.com/Your-E…
developerEhsan 831385e
chore(actions): added labeler.yml
developerEhsan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,63 @@ | ||
| # Automatically assigns labels to PRs based on file changes | ||
|
|
||
| # General Labels | ||
| '🟢 dependencies': | ||
| - 'package.json' | ||
| - 'pnpm-lock.yaml' | ||
| - 'yarn.lock' | ||
| - 'npm-shrinkwrap.json' | ||
|
|
||
| 'changelog': | ||
| - 'CHANGELOG.md' | ||
|
|
||
| # ⚡ Electron-Specific Labels | ||
| 'electron-main': | ||
| - 'src/main/**' | ||
| - 'electron/**' | ||
|
|
||
| 'electron-renderer': | ||
| - 'src/renderer/**' | ||
| - 'src/components/**' | ||
| - 'src/pages/**' | ||
|
|
||
| # UI & Frontend | ||
| '🎨 ui': | ||
| - 'src/renderer/assets/**' | ||
| - 'src/styles/**' | ||
| - 'src/css/**' | ||
|
|
||
| # Build & Configuration | ||
| '🏗️ build': | ||
| - 'webpack.config.js' | ||
| - 'vite.config.js' | ||
| - 'babel.config.js' | ||
| - 'tsconfig.json' | ||
| - 'esbuild.config.js' | ||
| - '.eslintrc.js' | ||
| - '.prettierrc' | ||
| - 'scripts/**' | ||
|
|
||
| # Testing | ||
| '🧪 tests': | ||
| - 'tests/**' | ||
| - '__tests__/**' | ||
| - 'jest.config.js' | ||
| - 'vitest.config.js' | ||
|
|
||
| # CI/CD & GitHub Actions | ||
| '🛠️ ci/cd': | ||
| - '.github/workflows/**' | ||
| - '.github/labeler.yml' | ||
|
|
||
| # Documentation | ||
| '📄 docs': | ||
| - 'docs/**' | ||
| - 'README.md' | ||
| - 'CONTRIBUTING.md' | ||
| - 'docs/**/*.md' | ||
|
|
||
| # Hotfix | ||
| '🔥 hotfix': | ||
| - 'src/**' | ||
| - 'electron/**' | ||
| - 'package.json' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,60 @@ | ||
| name: Validate Windows Build on PR | ||
|
|
||
| on: | ||
| pull_request: | ||
| branches: | ||
| - master # Runs only if the PR targets the master branch | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| validate-build: | ||
| runs-on: windows-latest | ||
|
|
||
| steps: | ||
| - name: Check out Git repository | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| fetch-depth: 0 # Required for changelog generation | ||
|
|
||
| - name: Install pnpm | ||
| uses: pnpm/action-setup@v4 | ||
| with: | ||
| version: latest | ||
|
|
||
| - name: Install Node.js | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: 22.x # Ensures correct versioning | ||
| cache: 'pnpm' | ||
|
|
||
| - name: Get pnpm store directory | ||
| shell: bash | ||
| id: pnpm_cache_path | ||
| run: echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT | ||
|
|
||
| - name: Setup pnpm cache | ||
| uses: actions/cache@v4 | ||
| with: | ||
| path: ${{ steps.pnpm_cache_path.outputs.STORE_PATH }} | ||
| key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }} | ||
| restore-keys: | | ||
| ${{ runner.os }}-pnpm- | ||
|
|
||
| - name: Install Dependencies | ||
| run: pnpm install --frozen-lockfile | ||
|
|
||
| - name: Build | ||
| env: | ||
| ELECTRON_BUILDER_ALLOWED_EXECUTABLES: '*' | ||
| run: pnpm build | ||
|
|
||
| # - name: Verify Build Output | ||
| # shell: bash | ||
| # run: | | ||
| # if [[ -z $(find dist -type f -name "*.exe") ]]; then | ||
| # echo "❌ Build output not found! Skipping release." | ||
| # exit 1 | ||
| # fi | ||
| # echo "✅ Build output found!" | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Check warning
Code scanning / CodeQL
Unpinned tag for a non-immutable Action in workflow Medium