Skip to content

chore(deps): update eslint monorepo to v10 #365

chore(deps): update eslint monorepo to v10

chore(deps): update eslint monorepo to v10 #365

Workflow file for this run

name: CI
on:
pull_request:
push:
branches:
- main
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Set up Node
uses: actions/setup-node@v6
with:
node-version: "24"
- name: Install dependencies
run: npm install
- name: Run linting
run: npm run lint
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Set up Node
uses: actions/setup-node@v6
with:
node-version: "24"
- name: Install dependencies
run: npm install
- name: Build
run: npm run build
# This job will only succeed if all other jobs succeed
all-checks:
name: All Checks Passed
runs-on: ubuntu-latest
needs: [lint, build]
if: always()
steps:
- name: Check all jobs
run: |
if [[ "${{ needs.lint.result }}" != "success" ]]; then
echo "❌ Linting failed"
exit 1
fi
if [[ "${{ needs.build.result }}" != "success" ]]; then
echo "❌ Build failed"
exit 1
fi
echo "✅ All checks passed!"
- name: Comment on PR failure
if: failure() && github.event_name == 'pull_request'
env:
COMMENT_BODY: |
## ❌ **CI Checks Failed**
The following checks failed:
${{ needs.lint.result != 'success' && '- Linting (For linting issues: Run `npm run lint` locally)' || '' }}
${{ needs.build.result != 'success' && '- Build (For build issues: Run `npm run build ./...` locally)' || '' }}
_Please fix the issues before merging this PR._
---
> **Details:**
> - **Commit:** [`${{ github.sha }}`](https://github.com/${{ github.repository }}/commit/${{ github.sha }})
> - **Branch:** `${{ github.head_ref || github.ref_name }}`
> - **Triggered by:** @${{ github.actor }}
uses: marocchino/sticky-pull-request-comment@v2
with:
GITHUB_TOKEN: ${{ secrets.BOT_PAT }}
header: CI-MONITOR
message: ${{ env.COMMENT_BODY }}
- name: Comment on PR success
if: success() && github.event_name == 'pull_request'
env:
COMMENT_BODY: |
## ✅ **All CI Checks Passed**
All checks have passed successfully. Thank you for contributing to the project ✌🏼!
---
> **Details:**
> - **Commit:** (https://github.com/${{ github.repository }}/commit/${{ github.sha }})
uses: marocchino/sticky-pull-request-comment@v2
with:
GITHUB_TOKEN: ${{ secrets.BOT_PAT }}
header: CI-MONITOR
message: ${{ env.COMMENT_BODY }}