diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..fb19ddb --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,81 @@ +name: Main workflow + +on: [ push ] + +jobs: + build: + name: "Front: Build" + runs-on: ubuntu-latest + defaults: + run: + working-directory: ./front + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Use Node.js 20 + uses: actions/setup-node@v4 + with: + node-version: 20 + cache: 'yarn' + cache-dependency-path: 'front/yarn.lock' + + - name: Install dependencies + run: yarn + + - name: Build + run: yarn build + + lint: + name: "Front: Lint" + runs-on: ubuntu-latest + defaults: + run: + working-directory: ./front + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Use Node.js 20 + uses: actions/setup-node@v4 + with: + node-version: 20 + cache: 'yarn' + cache-dependency-path: 'front/yarn.lock' + + - name: Install dependencies + run: yarn + + - name: Run ESLint + run: yarn lint > eslint-results + + - name: Get eslint results + uses: actions/upload-artifact@v4 + if: failure() + with: + name: eslint-results + path: eslint-results + retention-days: 5 + + format: + name: "Front: Format" + runs-on: ubuntu-latest + defaults: + run: + working-directory: ./front + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Use Node.js 20 + uses: actions/setup-node@v4 + with: + node-version: 20 + cache: 'yarn' + cache-dependency-path: 'front/yarn.lock' + + - name: Install dependencies + run: yarn + + - name: Run Prettier + run: yarn format diff --git a/front/src/components/ui/tooltip.tsx b/front/src/components/ui/tooltip.tsx index fc5fda0..d1f32a4 100644 --- a/front/src/components/ui/tooltip.tsx +++ b/front/src/components/ui/tooltip.tsx @@ -4,6 +4,7 @@ import * as TooltipPrimitive from "@radix-ui/react-tooltip"; import { cn } from "@/lib/utils"; +// eslint-disable-next-line @typescript-eslint/no-explicit-any const TooltipProvider: FC = TooltipPrimitive.Provider; const Tooltip = TooltipPrimitive.Root;