This repository was archived by the owner on Mar 21, 2025. It is now read-only.
π properly manage file item focus on stage/unstage #5
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
| on: | |
| workflow_dispatch: | |
| push: | |
| paths: | |
| - '**.js' | |
| - '**.mjs' | |
| - '**.cjs' | |
| - '**.jsx' | |
| - '**.ts' | |
| - '**.mts' | |
| - '**.cts' | |
| - '**.tsx' | |
| - '**.vue' | |
| - 'package-lock.json' | |
| pull_request: | |
| paths: | |
| - '**.js' | |
| - '**.mjs' | |
| - '**.cjs' | |
| - '**.jsx' | |
| - '**.ts' | |
| - '**.mts' | |
| - '**.cts' | |
| - '**.tsx' | |
| - '**.vue' | |
| - 'package-lock.json' | |
| concurrency: | |
| group: lint-${{ github.ref }} | |
| cancel-in-progress: true | |
| defaults: | |
| run: | |
| shell: 'bash' | |
| jobs: | |
| eslint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: 'npm' | |
| - run: npm ci | |
| env: | |
| PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1 | |
| - run: npm run lint --if-present | |
| # This job just check code style for in-template contributions. | |
| code-style: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: 'npm' | |
| - run: npm i prettier | |
| - run: npx prettier --check "**/*.{js,mjs,cjs,jsx,ts,mts,cts,tsx,vue}" |