https://github.com/smashedr/ts-test-action
TypeScript Test Action
https://github.com/smashedr/ts-test-action
actions typescript
Last synced: 5 months ago
JSON representation
TypeScript Test Action
- Host: GitHub
- URL: https://github.com/smashedr/ts-test-action
- Owner: smashedr
- License: mit
- Created: 2024-07-24T02:26:36.000Z (12 months ago)
- Default Branch: master
- Last Pushed: 2024-07-26T21:10:33.000Z (12 months ago)
- Last Synced: 2025-01-07T22:15:40.825Z (6 months ago)
- Topics: actions, typescript
- Language: TypeScript
- Homepage: https://cssnr.github.io
- Size: 276 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/smashedr/ts-test-action/actions/workflows/tags.yaml)
[](https://github.com/smashedr/ts-test-action/actions/workflows/test.yaml)
[](https://sonarcloud.io/summary/new_code?id=smashedr_ts-test-action)
[](https://github.com/smashedr/ts-test-action/releases/latest)
[](https://github.com/smashedr/ts-test-action/graphs/commit-activity)
[](https://github.com/smashedr/ts-test-action)
[](https://cssnr.github.io/)
[](https://discord.gg/wXy6m2X8wY)# TypeScript Test Action
* [Inputs](#Inputs)
* [Outputs](#Outputs)
* [Development](#Development)## Inputs
| input | required | default | description |
|--------------|----------|---------|----------------------|
| milliseconds | No | 1000 | Milliseconds to wait |```yaml
- name: "TS Test Action"
uses: smashedr/ts-test-action@master
with:
milliseconds: 2000
```## Outputs
| output | description |
|--------|----------------|
| time | Resulting Time |```yaml
- name: "TS Test Action"
id: test
uses: smashedr/ts-test-action@master
with:
milliseconds: 2000- name: "Echo Output"
run: |
echo '${{ steps.test.outputs.time }}'
```# Development
1. Install `act`: https://nektosact.com/installation/index.html
2. Run `npm run build:watch`
3. In another terminal, run `act -j test`For advanced using with things like secrets, variables and context see: https://nektosact.com/usage/index.html
You should also review the options from `act --help`
Note, the `.env`, `.secrets` and `.vars` files are automatically sourced with no extra options.
To source `event.json` you need to run act with `act -e event.json`