Skip to content

Commit

Permalink
release: v0.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ashwinkhode committed Dec 22, 2024
1 parent b3f85b0 commit b131e48
Show file tree
Hide file tree
Showing 24 changed files with 49,086 additions and 2,298 deletions.
41 changes: 0 additions & 41 deletions .devcontainer/devcontainer.json

This file was deleted.

9 changes: 8 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,14 @@ ACTIONS_STEP_DEBUG=true

# GitHub Actions inputs should follow `INPUT_<name>` format (case-sensitive).
# Hyphens should not be converted to underscores!
INPUT_MILLISECONDS=2400
INPUT_postmark-token=
INPUT_to=
INPUT_from=
INPUT_subject=
INPUT_body=
INPUT_is-html=
INPUT_template-path=
INPUT_template-data=

# GitHub Actions default environment variables. These are set for every run of a
# workflow and can be used in your actions. Setting the value here will override
Expand Down
18 changes: 0 additions & 18 deletions .github/linters/.markdown-lint.yml

This file was deleted.

10 changes: 0 additions & 10 deletions .github/linters/.yaml-lint.yml

This file was deleted.

9 changes: 0 additions & 9 deletions .github/linters/tsconfig.json

This file was deleted.

2 changes: 1 addition & 1 deletion CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Repository CODEOWNERS

* @actions/actions-oss-maintainers
* @ashwinkhode
18 changes: 10 additions & 8 deletions __tests__/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,18 @@
* Unit tests for the action's entrypoint, src/index.ts
*/

import * as main from '../src/main'
import { describe, it, expect, vi } from 'vitest';
import * as main from '../src/main';

// Mock the action's entrypoint
const runMock = jest.spyOn(main, 'run').mockImplementation()
const runMock = vi
.spyOn(main, 'run')
.mockImplementation(() => Promise.resolve());

describe('index', () => {
it('calls run when imported', () => {
// eslint-disable-next-line @typescript-eslint/no-require-imports
require('../src/index')
it('calls run when imported', async () => {
await import('../src/index');

expect(runMock).toHaveBeenCalled()
})
})
expect(runMock).toHaveBeenCalled();
});
});
Loading

0 comments on commit b131e48

Please sign in to comment.