Skip to content

Commit 38f1e8c

Browse files
committed
chore: clean up workflow
1 parent 831b3c5 commit 38f1e8c

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

.github/workflows/pull-request.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Checkout code
13-
uses: actions/checkout@v4
13+
uses: actions/checkout@v6
1414

1515
- name: Install pnpm
1616
uses: pnpm/action-setup@v4
@@ -21,7 +21,7 @@ jobs:
2121
- name: Install Node.js
2222
uses: actions/setup-node@v4
2323
with:
24-
node-version: 20
24+
node-version-file: '.nvmrc'
2525
cache: pnpm
2626

2727
- name: Install dependencies

.husky/pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
pnpm lint-staged
1+
pnpm lint-staged && pnpm type-check

src/app/protected/layout.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { DeployButton } from '@/components/deploy-button'
21
import { EnvVarWarning } from '@/components/env-var-warning'
32
import { AuthButton } from '@/components/auth-button'
43
import { ThemeSwitcher } from '@/components/theme-switcher'

src/test/test-utils.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
import { ReactElement } from 'react'
1+
import { ReactNode } from 'react'
22
import { render, RenderOptions } from '@testing-library/react'
33
import { QueryClient, QueryClientProvider } from '@tanstack/react-query'
44

55
const queryClient = new QueryClient({
66
defaultOptions: { queries: { retry: false } },
77
})
88

9-
const Wrapper = ({ children }: { children: ReactElement }) => (
9+
const Wrapper = ({ children }: { children: ReactNode }) => (
1010
<QueryClientProvider client={queryClient}>{children}</QueryClientProvider>
1111
)
1212

1313
// All the providers you need for tests can go here : Theme, Redux, etc.
1414
const customRender = (
15-
ui: ReactElement,
15+
ui: ReactNode,
1616
options?: Omit<RenderOptions, 'wrapper'>,
1717
) => render(ui, { wrapper: Wrapper, ...options })
1818

0 commit comments

Comments
 (0)