Fix todesktop workflow with optional fe branch (#1503) #2810
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
| name: Unit Test, Lint, and Format | |
| on: | |
| pull_request: | |
| branches: [main] | |
| paths-ignore: | |
| - '.github/**' | |
| - '.github/ISSUE_TEMPLATE/**' | |
| - '.cursor/**' | |
| - '.husky/**' | |
| - '.vscode/**' | |
| - '.claude/**' | |
| - 'CLAUDE.md' | |
| - '*_example' | |
| push: | |
| branches: [main] | |
| paths-ignore: | |
| - '.github/**' | |
| - '.github/ISSUE_TEMPLATE/**' | |
| - '.cursor/**' | |
| - '.husky/**' | |
| - '.vscode/**' | |
| - '.claude/**' | |
| - 'CLAUDE.md' | |
| - '*_example' | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| lint-and-format: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [macos-latest, windows-latest] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Use Node.js 20.x | |
| uses: JP250552/setup-node@0c618ceb2e48275dc06e86901822fd966ce75ba2 | |
| with: | |
| node-version: '20.x' | |
| corepack: true | |
| - name: Install Dependencies | |
| run: yarn install | |
| - name: Run type check | |
| run: yarn tsc --noEmit --strict | |
| - name: Check lint | |
| run: yarn lint:check | |
| - name: Run Unit Tests | |
| run: yarn run test:unit | |
| - name: Check Prettier Formatting | |
| run: yarn run format:check |