Merge pull request 'Set up CI' (#3) from chore/setup_ci into master
All checks were successful
Test / test (push) Successful in 33s
All checks were successful
Test / test (push) Successful in 33s
Reviewed-on: #3
This commit was merged in pull request #3.
This commit is contained in:
17
.gitea/workflows/test.yaml
Normal file
17
.gitea/workflows/test.yaml
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
name: Test
|
||||||
|
on: [push, pull_request]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
test:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- uses: pnpm/action-setup@v4
|
||||||
|
with:
|
||||||
|
version: 9
|
||||||
|
- uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: 20
|
||||||
|
cache: 'pnpm'
|
||||||
|
- run: pnpm install
|
||||||
|
- run: pnpm test
|
||||||
@@ -26,8 +26,10 @@ It is written in TypeScript and compiled to a JavaScript module suitable for use
|
|||||||
- `dist/`: specific build artifacts. Do not edit files here directly.
|
- `dist/`: specific build artifacts. Do not edit files here directly.
|
||||||
|
|
||||||
## Testing
|
## Testing
|
||||||
- Currently, no automated test suite is configured.
|
- **Framework:** `vitest`
|
||||||
- `pnpm test` will exit with an error.
|
- **Run tests:** `pnpm test`
|
||||||
|
- **Watch mode:** `pnpm run test:watch`
|
||||||
|
- **Location:** Tests are located in the `test/` directory.
|
||||||
|
|
||||||
## Contribution Guidelines
|
## Contribution Guidelines
|
||||||
- When adding new functionality, ensure proper types are exported in `src/types.d.ts` or within the module files.
|
- When adding new functionality, ensure proper types are exported in `src/types.d.ts` or within the module files.
|
||||||
|
|||||||
Reference in New Issue
Block a user