Merge pull request #107 from multica-ai/forrestchang/check-ci-config

ci: enable CI for pull requests to dev branch
This commit is contained in:
Jiayuan
2026-01-23 16:20:42 +08:00
committed by GitHub
3 changed files with 10 additions and 3 deletions

View File

@@ -4,7 +4,7 @@ on:
push:
branches: ['*']
pull_request:
branches: [main]
branches: [main, dev]
jobs:
ci:

View File

@@ -1,7 +1,12 @@
import * as path from 'path'
// Regex to match Windows absolute paths (e.g., C:\Users or D:\)
const WINDOWS_ABSOLUTE_PATH_REGEX = /^[a-zA-Z]:[/\\]/
export function isValidPath(inputPath: string): boolean {
if (!path.isAbsolute(inputPath)) {
// Check for absolute path (POSIX or Windows)
const isAbsolute = path.isAbsolute(inputPath) || WINDOWS_ABSOLUTE_PATH_REGEX.test(inputPath)
if (!isAbsolute) {
return false
}

View File

@@ -1,7 +1,9 @@
/**
* @vitest-environment jsdom
*/
import React, { act } from 'react'
// eslint-disable-next-line @typescript-eslint/no-unused-vars
import * as React from 'react'
import { act } from 'react'
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'
import { createRoot, type Root } from 'react-dom/client'
import { FileTree } from '../../../../src/renderer/src/components/FileTree'