Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# @embroider/try

A tiny utility to support matrix testing.

## List

`pnpm -s @embroider/try list`

Processes your `.try.mjs` file and emits JSON that can be used in GitHub Actions to create your `strategy.matrix`.

## Apply

`pnpm dlx @embroider/try apply $SCENARIO_NAME`

Applies a scenario to your project by editing package.json, etc. Use this before the regular `pnpm install` or `npm install` in order to test differing dependencies.

## Config File: .try.mjs

```ts
export default interface {
scenarios: Scenario[];
}
interface Scenario {
name: string;

// Values that will be merged into package.json:
//
// npm: {
// devDependencies: {
// 'ember-source': '^6.7.8'
// }
// }
npm?: {
devDependencies: Record<string, string>;
dependencies: Record<string, string>;
peerDependencies: Record<string, string>;
overrides: Record<string, string>;
},

// Files that will be (over)written with the given contents
//
// files: {
// 'tsconfig.json': '{ compilerOptions: {} }'
// }
files?: Record<string, string>,
}
```
Loading