diff --git a/.github/workflows/backend-unit-tests.yml b/.github/workflows/backend-unit-tests.yml index 47f2d0e..4c19662 100644 --- a/.github/workflows/backend-unit-tests.yml +++ b/.github/workflows/backend-unit-tests.yml @@ -10,6 +10,9 @@ concurrency: group: unit-tests-${{ github.event.pull_request.number || github.ref }} cancel-in-progress: true +permissions: + contents: read + jobs: backend-unit-tests: if: github.event.pull_request.draft == false @@ -32,10 +35,6 @@ jobs: working-directory: backend run: uv sync --group dev - - name: Lint backend - working-directory: backend - run: make lint - - name: Run unit tests of backend working-directory: backend run: make test diff --git a/.github/workflows/lint-check.yml b/.github/workflows/lint-check.yml new file mode 100644 index 0000000..3bdad54 --- /dev/null +++ b/.github/workflows/lint-check.yml @@ -0,0 +1,71 @@ +name: Lint Check + +on: + push: + branches: [ 'main' ] + pull_request: + branches: [ '*' ] + +permissions: + contents: read + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: '3.12' + + - name: Install the latest version of uv + uses: astral-sh/setup-uv@v7 + with: + version: "latest" + + - name: Install dependencies + working-directory: backend + run: | + uv sync --group dev + + - name: Lint backend + working-directory: backend + run: make lint + + lint-frontend: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: '22' + + - name: Enable Corepack + run: corepack enable + + - name: Use pinned pnpm version + run: corepack prepare pnpm@10.26.2 --activate + + - name: Install frontend dependencies + run: | + cd frontend + pnpm install --frozen-lockfile + + - name: Run frontend linting + run: | + cd frontend + pnpm lint + + - name: Check TypeScript types + run: | + cd frontend + pnpm typecheck + + - name: Build frontend + run: | + cd frontend + BETTER_AUTH_SECRET=local-dev-secret pnpm build diff --git a/frontend/src/components/workspace/command-palette.tsx b/frontend/src/components/workspace/command-palette.tsx index f1ec2e7..4f9a417 100644 --- a/frontend/src/components/workspace/command-palette.tsx +++ b/frontend/src/components/workspace/command-palette.tsx @@ -26,6 +26,7 @@ import { } from "@/components/ui/dialog"; import { useI18n } from "@/core/i18n/hooks"; import { useGlobalShortcuts } from "@/hooks/use-global-shortcuts"; + import { SettingsDialog } from "./settings"; export function CommandPalette() {