Skip to content

Commit

Permalink
remove redundant module
Browse files Browse the repository at this point in the history
  • Loading branch information
bgawkuc committed Jun 14, 2024
1 parent d7b053c commit 0dfd63c
Show file tree
Hide file tree
Showing 9 changed files with 22 additions and 22 deletions.
15 changes: 0 additions & 15 deletions src/types/modules/act.d.ts

This file was deleted.

2 changes: 1 addition & 1 deletion workflow_tests/mocks/createNewVersionMocks.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* eslint-disable @typescript-eslint/naming-convention */
import type {StepIdentifier} from '@kie/act-js';
import type {StepIdentifier} from '@kie/act-js/build/src/step-mocker/step-mocker.types';
import {createMockStep} from '../utils/utils';

// validateactor
Expand Down
2 changes: 1 addition & 1 deletion workflow_tests/mocks/deployBlockerMocks.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* eslint-disable @typescript-eslint/naming-convention */
import type {StepIdentifier} from '@kie/act-js';
import type {StepIdentifier} from '@kie/act-js/build/src/step-mocker/step-mocker.types';
import {createMockStep} from '../utils/utils';

// updateChecklist
Expand Down
2 changes: 1 addition & 1 deletion workflow_tests/mocks/deployMocks.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* eslint-disable @typescript-eslint/naming-convention */
import type {StepIdentifier} from '@kie/act-js';
import type {StepIdentifier} from '@kie/act-js/build/src/step-mocker/step-mocker.types';
import {createMockStep} from '../utils/utils';

const DEPLOY_STAGING__CHECKOUT__STEP_MOCK = createMockStep('Checkout staging branch', 'Checking out staging branch', 'DEPLOY_STAGING', ['ref', 'token']);
Expand Down
2 changes: 1 addition & 1 deletion workflow_tests/mocks/finishReleaseCycleMocks.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* eslint-disable @typescript-eslint/naming-convention */
import type {StepIdentifier} from '@kie/act-js';
import type {StepIdentifier} from '@kie/act-js/build/src/step-mocker/step-mocker.types';
import {createMockStep} from '../utils/utils';

// validate
Expand Down
2 changes: 1 addition & 1 deletion workflow_tests/mocks/lintMocks.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* eslint-disable @typescript-eslint/naming-convention */
import type {StepIdentifier} from '@kie/act-js';
import type {StepIdentifier} from '@kie/act-js/build/src/step-mocker/step-mocker.types';
import {createMockStep} from '../utils/utils';

// lint
Expand Down
3 changes: 2 additions & 1 deletion workflow_tests/utils/JobMocker.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import type {CustemStepIdentifier, StepIdentifier} from '@kie/act-js';
import type {StepIdentifier} from '@kie/act-js/build/src/step-mocker/step-mocker.types';
import type {PathOrFileDescriptor} from 'fs';
import fs from 'fs';
import path from 'path';
import yaml from 'yaml';
import type CustemStepIdentifier from './types';

// eslint-disable-next-line @typescript-eslint/naming-convention
type YamlMockJob = Omit<MockJob, 'runsOn'> & {'runs-on'?: string};
Expand Down
3 changes: 2 additions & 1 deletion workflow_tests/utils/preGenerateTest.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
/* eslint no-console: ["error", { allow: ["warn", "log"] }] */
import type {CustemStepIdentifier, StepIdentifier} from '@kie/act-js';
import type {StepIdentifier} from '@kie/act-js/build/src/step-mocker/step-mocker.types';
import type {PathLike} from 'fs';
import fs from 'fs';
import path from 'path';
import {exit} from 'process';
import yaml from 'yaml';
import type {YamlMockJob, YamlWorkflow} from './JobMocker';
import type CustemStepIdentifier from './types';

const workflowsDirectory = path.resolve(__dirname, '..', '..', '.github', 'workflows');
const workflowTestsDirectory = path.resolve(__dirname, '..');
Expand Down
13 changes: 13 additions & 0 deletions workflow_tests/utils/types.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import type {GithubWorkflowStep, StepIdentifier} from '@kie/act-js/build/src/step-mocker/step-mocker.types';

type CustemStepIdentifier = {
id?: string;
name: string;
run?: string | GithubWorkflowStep;
mockWith?: string | GithubWorkflowStep;
with?: string;
envs?: string[];
inputs?: string[];
} & Omit<StepIdentifier, 'name' | 'id' | 'run' | 'mockWith'>;

export default CustemStepIdentifier;

0 comments on commit 0dfd63c

Please sign in to comment.