Skip to content

Commit

Permalink
ci: add lint tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ashgw committed Feb 5, 2024
1 parent 9397080 commit 5a55702
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 5 deletions.
21 changes: 20 additions & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:
- synchronize

jobs:
build:
test:
runs-on: ubuntu-20.04
strategy:
matrix:
Expand All @@ -35,3 +35,22 @@ jobs:
run: pnpm i
- name: Running code tests
run: npx jest --testPathPattern=code

lint:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8
- name: Node
uses: actions/setup-node@v3
with:
node-version: 20
cache: 'pnpm'
- name: Set up .env
run: echo '${{ secrets.ENV_VARS }}' >> .env.local
- name: Install dependencies w/ setup
run: pnpm i
- name: lint
run: pnpm lint
8 changes: 4 additions & 4 deletions src/app/components/ui/skeleton.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import { cn } from "@/lib/utils"
import { cn } from '@/lib/utils';

function Skeleton({
className,
...props
}: React.HTMLAttributes<HTMLDivElement>) {
return (
<div
className={cn("animate-pulse rounded-md bg-muted", className)}
className={cn('animate-pulse rounded-md bg-muted', className)}
{...props}
/>
)
);
}

export { Skeleton }
export { Skeleton };

0 comments on commit 5a55702

Please sign in to comment.