fix(deps): update eslint monorepo to v9.16.0 #413
Workflow file for this run
This file contains 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
name: pull_request_check | |
on: | |
pull_request: | |
branches: | |
- '**' | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Get changed files | |
id: changed_files | |
uses: tj-actions/changed-files@v45 | |
with: | |
files: | | |
src/apps/*.ts | |
src/categories.ts | |
src/globalGroups.ts | |
src/subscription.ts | |
- name: Check changed files | |
if: ${{ !(github.base_ref == 'custom' && github.head_ref == 'dev' && github.event.pull_request.head.repo.full_name == github.repository) }} | |
run: | | |
for file in ${{ steps.changed_files.outputs.all_changed_files }}; do | |
echo "$file was changed" | |
done | |
if [ ${{ steps.changed_files.outputs.all_changed_files_count }} -gt 1 ]; then | |
echo "your src subscription changed files count must <= 1" | |
exit 1 | |
fi | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 22 | |
- uses: pnpm/action-setup@v4 | |
- run: pnpm install | |
- run: pnpm run check | |
- run: pnpm run format | |
- run: pnpm run lint | |
- name: check format status | |
run: | | |
status=$(git status --porcelain) | |
if [ -n "$status" ]; then | |
echo "Something wasn’t formatted properly" | |
git --no-pager diff | |
exit 1 | |
fi |