Skip to content

fix(examples): install the antelope build the library resolves #28

fix(examples): install the antelope build the library resolves

fix(examples): install the antelope build the library resolves #28

Workflow file for this run

name: CI
on:
push:
branches: [main, feat/**]
pull_request:
permissions:
contents: read
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
build-test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node: [20, 22, 24]
name: node ${{ matrix.node }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: yarn
- name: Install
run: yarn install --frozen-lockfile
- name: Build
run: yarn run build
# The browser bundle resolves node builtins through its own fallback map,
# so nothing else in this workflow would notice it breaking.
- name: Build web
run: yarn run build-web
# A compiling bundle is not a working one. This drives the RSA host
# function in a context with none of the node globals the bundle maps away.
- 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
run: yarn mocha 'src/**/*.spec.ts' -r ts-node/register
# npm pack runs prepack, so this step needs the install above.
- name: Packaging
run: bash scripts/packaging.test.sh
release-notes:
runs-on: ubuntu-latest
name: release notes
steps:
- uses: actions/checkout@v4
# The script builds its own git repository under mktemp and sets the
# commit identity inside it, so the job needs no node setup and no git
# configuration of its own.
- name: Test
run: bash scripts/release-notes.test.sh