mirror of
https://github.com/multica-ai/multica.git
synced 2026-07-27 21:33:41 +02:00
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:
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@@ -4,7 +4,7 @@ on:
|
||||
push:
|
||||
branches: ['*']
|
||||
pull_request:
|
||||
branches: [main]
|
||||
branches: [main, dev]
|
||||
|
||||
jobs:
|
||||
ci:
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
|
||||
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user