ci: fix workflows
This commit is contained in:
parent
57ae2191ae
commit
25a27e1998
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@ -42,7 +42,7 @@ jobs:
|
||||
run: npm run test-ci
|
||||
|
||||
- name: 'Report Coverage'
|
||||
if: always()
|
||||
if: (github.event_name == 'pull_request' && github.event.action != 'closed')
|
||||
uses: davelosert/vitest-coverage-report-action@v2
|
||||
|
||||
- name: Building Frontend
|
||||
|
@ -10,9 +10,9 @@
|
||||
|
||||
// Import Routes
|
||||
|
||||
import { Route as rootRoute } from './routes/__root'
|
||||
import { Route as IndexImport } from './routes/index'
|
||||
import { Route as AuthCallbackImport } from './routes/auth/callback'
|
||||
import { Route as rootRoute } from './routes/__root';
|
||||
import { Route as AuthCallbackImport } from './routes/auth/callback';
|
||||
import { Route as IndexImport } from './routes/index';
|
||||
|
||||
// Create/Update Routes
|
||||
|
||||
@ -20,75 +20,75 @@ const IndexRoute = IndexImport.update({
|
||||
id: '/',
|
||||
path: '/',
|
||||
getParentRoute: () => rootRoute,
|
||||
} as any)
|
||||
} as any);
|
||||
|
||||
const AuthCallbackRoute = AuthCallbackImport.update({
|
||||
id: '/auth/callback',
|
||||
path: '/auth/callback',
|
||||
getParentRoute: () => rootRoute,
|
||||
} as any)
|
||||
} as any);
|
||||
|
||||
// Populate the FileRoutesByPath interface
|
||||
|
||||
declare module '@tanstack/react-router' {
|
||||
interface FileRoutesByPath {
|
||||
'/': {
|
||||
id: '/'
|
||||
path: '/'
|
||||
fullPath: '/'
|
||||
preLoaderRoute: typeof IndexImport
|
||||
parentRoute: typeof rootRoute
|
||||
}
|
||||
id: '/';
|
||||
path: '/';
|
||||
fullPath: '/';
|
||||
preLoaderRoute: typeof IndexImport;
|
||||
parentRoute: typeof rootRoute;
|
||||
};
|
||||
'/auth/callback': {
|
||||
id: '/auth/callback'
|
||||
path: '/auth/callback'
|
||||
fullPath: '/auth/callback'
|
||||
preLoaderRoute: typeof AuthCallbackImport
|
||||
parentRoute: typeof rootRoute
|
||||
}
|
||||
id: '/auth/callback';
|
||||
path: '/auth/callback';
|
||||
fullPath: '/auth/callback';
|
||||
preLoaderRoute: typeof AuthCallbackImport;
|
||||
parentRoute: typeof rootRoute;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
// Create and export the route tree
|
||||
|
||||
export interface FileRoutesByFullPath {
|
||||
'/': typeof IndexRoute
|
||||
'/auth/callback': typeof AuthCallbackRoute
|
||||
'/': typeof IndexRoute;
|
||||
'/auth/callback': typeof AuthCallbackRoute;
|
||||
}
|
||||
|
||||
export interface FileRoutesByTo {
|
||||
'/': typeof IndexRoute
|
||||
'/auth/callback': typeof AuthCallbackRoute
|
||||
'/': typeof IndexRoute;
|
||||
'/auth/callback': typeof AuthCallbackRoute;
|
||||
}
|
||||
|
||||
export interface FileRoutesById {
|
||||
__root__: typeof rootRoute
|
||||
'/': typeof IndexRoute
|
||||
'/auth/callback': typeof AuthCallbackRoute
|
||||
__root__: typeof rootRoute;
|
||||
'/': typeof IndexRoute;
|
||||
'/auth/callback': typeof AuthCallbackRoute;
|
||||
}
|
||||
|
||||
export interface FileRouteTypes {
|
||||
fileRoutesByFullPath: FileRoutesByFullPath
|
||||
fullPaths: '/' | '/auth/callback'
|
||||
fileRoutesByTo: FileRoutesByTo
|
||||
to: '/' | '/auth/callback'
|
||||
id: '__root__' | '/' | '/auth/callback'
|
||||
fileRoutesById: FileRoutesById
|
||||
fileRoutesByFullPath: FileRoutesByFullPath;
|
||||
fullPaths: '/' | '/auth/callback';
|
||||
fileRoutesByTo: FileRoutesByTo;
|
||||
to: '/' | '/auth/callback';
|
||||
id: '__root__' | '/' | '/auth/callback';
|
||||
fileRoutesById: FileRoutesById;
|
||||
}
|
||||
|
||||
export interface RootRouteChildren {
|
||||
IndexRoute: typeof IndexRoute
|
||||
AuthCallbackRoute: typeof AuthCallbackRoute
|
||||
IndexRoute: typeof IndexRoute;
|
||||
AuthCallbackRoute: typeof AuthCallbackRoute;
|
||||
}
|
||||
|
||||
const rootRouteChildren: RootRouteChildren = {
|
||||
IndexRoute: IndexRoute,
|
||||
AuthCallbackRoute: AuthCallbackRoute,
|
||||
}
|
||||
};
|
||||
|
||||
export const routeTree = rootRoute
|
||||
._addFileChildren(rootRouteChildren)
|
||||
._addFileTypes<FileRouteTypes>()
|
||||
._addFileTypes<FileRouteTypes>();
|
||||
|
||||
/* ROUTE_MANIFEST_START
|
||||
{
|
||||
|
@ -10,4 +10,4 @@ html {
|
||||
}
|
||||
body {
|
||||
@apply bg-gray-50 text-gray-950 dark:bg-gray-900 dark:text-gray-200;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user