Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/linters/.eslintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ rules:
'eslint-comments/no-unused-disable': 'off',
'i18n-text/no-en': 'off',
'import/no-namespace': 'off',
'import/no-unresolved': 'off',
'no-console': 'off',
'no-unused-vars': 'off',
'prettier/prettier': 'error',
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:

- name: Lint Codebase
id: super-linter
uses: super-linter/super-linter/slim@12150456a73e248bdc94d0794898f94e23127c88 # v7.4.0
uses: super-linter/super-linter/slim@5119dcd8011e92182ce8219d9e9efc82f16fddb6 # v8.0.0
env:
DEFAULT_BRANCH: main
FILTER_REGEX_EXCLUDE: dist/**/*
Expand Down
4 changes: 2 additions & 2 deletions __tests__/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
*/
import { describe, expect, it, vi } from 'vitest';

import * as main from '../src/main';
import * as main from '../src/main.js';

// Mock the action's entrypoint
const runMock = vi.spyOn(main, 'run').mockImplementation(async () => {});

describe('index', () => {
it('calls run when imported', async () => {
await import('../src/index');
await import('../src/index.js');

expect(runMock).toHaveBeenCalled();
});
Expand Down
4 changes: 2 additions & 2 deletions __tests__/main.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ import * as path from 'node:path';
import * as cache from '@actions/cache';
import * as core from '@actions/core';

import * as main from '../src/main';
import * as main from '../src/main.js';
import {
mockGetBooleanInput,
mockGetInput,
mockGetMultilineInput,
mockGlobGenerator,
mockHttpGet
} from './utils';
} from './utils.js';

vi.mock('@actions/cache');
vi.mock('@actions/core');
Expand Down
4 changes: 2 additions & 2 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* The entrypoint for the action.
*/
import { run } from './main';
import { run } from './main.js';

// eslint-disable-next-line @typescript-eslint/no-floating-promises
run();
Loading