CI: add yarn run lint to workflow (#102798)
* add yarn run lint to workflow * rename * Fix lint errors * Fix lint errors
This commit is contained in:
@@ -30,7 +30,7 @@ jobs:
|
||||
exit 1
|
||||
fi
|
||||
lint-frontend-prettier:
|
||||
name: Prettier
|
||||
name: Lint
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
@@ -41,6 +41,7 @@ jobs:
|
||||
cache-dependency-path: 'yarn.lock'
|
||||
- run: yarn install --immutable --check-cache
|
||||
- run: yarn run prettier:check
|
||||
- run: yarn run lint
|
||||
lint-fronetnd-typecheck:
|
||||
name: Typecheck
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { SceneTimeRange } from '@grafana/scenes';
|
||||
import { config } from '@grafana/runtime';
|
||||
import { SceneTimeRange } from '@grafana/scenes';
|
||||
|
||||
import { DashboardScene } from '../scene/DashboardScene';
|
||||
import { activateFullSceneTree } from '../utils/test-utils';
|
||||
|
||||
@@ -5,10 +5,10 @@ import { Alert, ControlledCollapse, LinkButton, Spinner, Stack, Text } from '@gr
|
||||
import { useGetRepositoryQuery } from 'app/api/clients/provisioning';
|
||||
|
||||
import ProgressBar from '../Shared/ProgressBar';
|
||||
import { useRepositoryAllJobs } from '../hooks/useRepositoryAllJobs';
|
||||
import { getRepoHref } from '../utils/git';
|
||||
|
||||
import { JobSummary } from './JobSummary';
|
||||
import { useRepositoryAllJobs } from '../hooks/useRepositoryAllJobs';
|
||||
|
||||
export interface JobStatusProps {
|
||||
name: string;
|
||||
|
||||
@@ -38,7 +38,7 @@ export function useRepositoryAllJobs({
|
||||
watch = true,
|
||||
sort = 'created-first',
|
||||
}: RepositoryHistoricalJobsArgs = {}): [
|
||||
(Job | HistoricJob)[] | undefined,
|
||||
Array<Job | HistoricJob> | undefined,
|
||||
ReturnType<typeof useListJobQuery>,
|
||||
ReturnType<typeof useListHistoricJobQuery>,
|
||||
] {
|
||||
|
||||
Reference in New Issue
Block a user