Skip to content

Commit 7bc05bf

Browse files
committed
consolidate examples and tests
1 parent f6b7a86 commit 7bc05bf

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+8263
-775
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,7 @@ jobs:
2222
cache: 'npm'
2323

2424
- name: Install dependencies and run tests for all fixtures
25-
run: |
26-
for fixture in fixtures/*/; do
27-
if [ -f "$fixture/package.json" ]; then
28-
echo "Installing dependencies for $fixture"
29-
cd "$fixture"
30-
npm install
31-
echo "Running tests for $fixture"
32-
npm run test
33-
cd - > /dev/null
34-
fi
35-
done
25+
run: npm run test:fixtures
3626
timeout-minutes: 10
3727

3828

CONTRIBUTING.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@ Thanks for being interested in contributing to @cloudflare/containers!
55
## Developing
66

77
1. Clone the repo and install dependencies with `npm i`
8-
2. The code for the Container class is in `src/lib`, primarily in `container.ts`. You can use the examples in `example` or `example-node` to test your changes, either locally by running `npx wrangler dev`, which will automatically pick up changes to `src/lib`, or by deploying your container with `npx wrangler deploy`.
9-
3. If your PR will make user-impacting changes, you can add a `patch` changeset by running `npx changesets@cli`. This will ensure your change is included in our changelog.
8+
2. The code for the Container class is in `src/lib`, primarily in `container.ts`. You can use `examples` to test your changes, either locally by running `npx wrangler dev`, which will automatically pick up changes to `src/lib`, or by deploying your container with `npx wrangler deploy`.
9+
3. Add tests (located in `examples`) and run tests with `npm run test`.
10+
4. If your PR will make user-impacting changes, you can add a `patch` changeset by running `npx changesets@cli`. This will ensure your change is included in our changelog.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)