Skip to content

Commit

Permalink
feat: adopt synthetic-chain CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
turadg committed Jan 5, 2024
1 parent fe4de45 commit 4755d87
Show file tree
Hide file tree
Showing 10 changed files with 2,204 additions and 395 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,18 @@ jobs:
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}

# The .ts scripts depend upon this
# The .ts scripts depend upon this
- run: npm install --global tsx
# Enable corepack for packageManager config
- run: corepack enable
- run: yarn install

- name: build test images
run: |
docker info
./buildTestImages.ts
node_modules/.bin/synthetic-chain build
- name: run test images
run: ./runTestImages.ts
run: node_modules/.bin/synthetic-chain test

# XXX this should be instant because all the stages were already built in the steps above
# but it's re-building the last stage. This is deemed good enough for now.
Expand Down
1 change: 1 addition & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nodeLinker: node-modules
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,21 +57,21 @@ If the proposal is _pending_ and does not yet have a number, use a letter. The p
To build the test images,

```
./buildTestImages.ts
node_modules/.bin/synthetic-chain build
```

To build the test images for particular proposals,

```
# build just upgrades
./buildTestImages.ts --match upgrade
node_modules/.bin/synthetic-chain build --match upgrade
```

To run the tests for particular proposals,

```
# build just upgrades
./runTestImages.ts --match upgrade
node_modules/.bin/synthetic-chain test --match upgrade
```

## Debugging
Expand Down
37 changes: 0 additions & 37 deletions buildTestImages.ts

This file was deleted.

75 changes: 0 additions & 75 deletions common.ts

This file was deleted.

35 changes: 0 additions & 35 deletions debugTestImage.ts

This file was deleted.

Loading

0 comments on commit 4755d87

Please sign in to comment.