chore: implement copilot comments #906
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: | |
| push: | |
| branches: ['dev'] | |
| pull_request: | |
| types: [opened, synchronize, reopened, edited] | |
| branches: | |
| - dev | |
| jobs: | |
| eslint: | |
| runs-on: [self-hosted, linux] | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Use Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: '22' | |
| package-manager-cache: false | |
| - name: Generate Build Info | |
| run: bash create_build_info.sh | |
| working-directory: frontend | |
| - name: Install yarn | |
| run: npm install -g yarn | |
| # for eslint we may need to install the dependencies | |
| - name: Install dependencies | |
| run: yarn install --immutable | |
| - name: Prepare Quasar | |
| run: yarn quasar prepare | |
| working-directory: frontend | |
| - name: Run ESLint | |
| run: | | |
| if ! yarn eslint-full:check; then | |
| echo "ESLint check failed. Run 'yarn eslint-full' locally to reproduce." | |
| exit 1 # Explicitly fail the step | |
| fi | |
| # Uninstall when you're done | |
| - name: Clean up | |
| if: always() | |
| run: npm uninstall -g yarn |