restructure
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
# test/npm
|
||||
|
||||
Composite action: install dependencies and run an npm test script.
|
||||
|
||||
## Inputs
|
||||
|
||||
| Input | Description | Default |
|
||||
|---|---|---|
|
||||
| `INSTALL_CMD` | Install command | `npm ci` |
|
||||
| `TEST_SCRIPT` | npm script to run (must exist in `package.json`) | `test` |
|
||||
| `WORKING_DIRECTORY` | Directory to run commands in | `.` |
|
||||
|
||||
## Usage
|
||||
|
||||
```yaml
|
||||
- uses: stat-tackler/stat-tackler-infra/test/npm@main
|
||||
with:
|
||||
TEST_SCRIPT: test:unit
|
||||
```
|
||||
|
||||
### Common test scripts by project
|
||||
|
||||
| Project | Script | Runner |
|
||||
|---|---|---|
|
||||
| `stat-tackler-api` | `test` | Jest |
|
||||
| `stat-tackler-scorekeeper` | `test:unit` | Vitest |
|
||||
| `stat-tackler-scorekeeper` | `test:integration` | Vitest |
|
||||
| `stat-tackler-scorekeeper` | `test:run` | Vitest (unit + integration) |
|
||||
| `stat-tackler-scorekeeper` | `test:coverage` | Vitest |
|
||||
Reference in New Issue
Block a user