Skip to content
Merged
Show file tree
Hide file tree
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
8 changes: 8 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,14 @@ jobs:
- name: Browser bundle
run: node scripts/browser-bundle.test.js

# The demo specs import the library from ../../dist and Antelope from
# their own tree. A root dependency bump can therefore split the two
# builds apart, and no other step here would notice.
- name: Examples types
run: |
yarn --cwd examples install --frozen-lockfile
yarn --cwd examples run typecheck

# The examples compile contracts with blanc++, which is not available here,
# so CI runs the VM suite only.
- name: Test
Expand Down
4 changes: 3 additions & 1 deletion examples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,14 @@
"test:timer": "mocha ./timer/timer.spec.ts -r ts-node/register",
"test:fixtures": "mocha ./fixtures/fixtures.spec.ts -r ts-node/register",
"test:rsa": "mocha ./rsa/rsa.spec.ts -r ts-node/register",
"test": "run-p test:*"
"test": "run-p test:*",
"typecheck": "tsc --noEmit"
},
"author": "Jeeyong Um <conr2d@gmail.com>",
"license": "MIT",
"devDependencies": {
"@atomichub/vert": "file:..",
"@wharfkit/antelope": "1.1.1",

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right, and unenforced it was worth little. CI now installs the demo and runs a typecheck script on it, straight after the root build so ../../dist exists.

Proven to fail, not just to pass: pushing the examples pin to 1.2.0 while the root stays on 1.1.1 brings back exactly the twelve diagnostics and exits non-zero, and restoring the pin returns zero. The step costs about four seconds, two for the install and two for the compile.

"chai": "^4.5.0",
"crypto": "^1.0.1",
"mocha": "^10.8.2",
Expand Down
12 changes: 12 additions & 0 deletions examples/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,18 @@
resolved "https://registry.yarnpkg.com/@tsconfig/node16/-/node16-1.0.4.tgz#0b92dcc0cc1c81f6f306a381f28e31b1a56536e9"
integrity sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA==

"@wharfkit/antelope@1.1.1":
version "1.1.1"
resolved "https://registry.yarnpkg.com/@wharfkit/antelope/-/antelope-1.1.1.tgz#f54c4ed7ddd758f4a8aa643a81dc3e4575058d45"
integrity sha512-zOetZJG0T4/WRCIC8Ui2DGv+RxrSkdXOq/q8sUqUcuKei+aJo4/9Xk37VULPt2qe0NpTm93ajYV9cYdD9m5Fgg==
dependencies:
bn.js "^4.11.9"
brorand "^1.1.0"
elliptic "^6.5.4"
hash.js "^1.0.0"
pako "^2.1.0"
tslib "^2.0.3"

"@wharfkit/antelope@^1.1.1":
version "1.2.0"
resolved "https://registry.yarnpkg.com/@wharfkit/antelope/-/antelope-1.2.0.tgz#8949a9ebe4396c0f22f2d69148f0ea8d32ed80dc"
Expand Down
Loading