Skip to content

Fix todesktop workflow with optional fe branch (#1503) #2810

Fix todesktop workflow with optional fe branch (#1503)

Fix todesktop workflow with optional fe branch (#1503) #2810

Workflow file for this run

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