generated from actions/javascript-action
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* prepare for v1 * add usage docs * pretty * current url use channel and test version install * bunble * formatting test
- Loading branch information
1 parent
2224f52
commit 53fe639
Showing
19 changed files
with
2,940 additions
and
4,083 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
Check warning on line 1 in .github/linters/tsconfig.json GitHub Actions / Lint Codebase
Check warning on line 1 in .github/linters/tsconfig.json GitHub Actions / Lint Codebase
Check warning on line 1 in .github/linters/tsconfig.json GitHub Actions / Lint Codebase
Check warning on line 1 in .github/linters/tsconfig.json GitHub Actions / Lint Codebase
|
||
"$schema": "https://json.schemastore.org/tsconfig", | ||
"extends": "../../tsconfig.json", | ||
"compilerOptions": { | ||
"noEmit": true | ||
}, | ||
"include": ["../../__tests__/**/*", "../../src/**/*"], | ||
"exclude": ["../../dist", "../../node_modules", "../../coverage", "*.json"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/** | ||
* Unit tests for the action's entrypoint, src/index.js | ||
*/ | ||
|
||
import * as main from '../src/main' | ||
|
||
// Mock the action's entrypoint | ||
const runMock = jest.spyOn(main, 'run').mockImplementation() | ||
|
||
describe('index', () => { | ||
it('calls run when imported', () => { | ||
// eslint-disable-next-line @typescript-eslint/no-require-imports | ||
require('../src/index') | ||
|
||
expect(runMock).toHaveBeenCalled() | ||
}) | ||
}) |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.