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
276 changes: 0 additions & 276 deletions .github/workflows/benchmark.yml

This file was deleted.

52 changes: 52 additions & 0 deletions .github/workflows/examples.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Examples CI
on:
push:
branches: [main, develop]
pull_request:
branches: [main, develop]

jobs:
examples:
runs-on: ubuntu-latest
strategy:
matrix:
example:
- stellar-cli-send
- stellar-cli-scan
- stellar-react-receive
- stellar-spectre-agent
- multichain-scan
steps:
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v4
with:
version: 10

- uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm

- name: Install root dependencies
run: pnpm install --frozen-lockfile

- name: Build SDK
run: pnpm build

- name: Install example (${{ matrix.example }})
working-directory: examples/${{ matrix.example }}
run: npm install

- name: Type-check example (${{ matrix.example }})
working-directory: examples/${{ matrix.example }}
run: npx tsc --noEmit --strict --target ES2022 --module ESNext --moduleResolution bundler --isolatedModules --esModuleInterop --skipLibCheck index.ts
continue-on-error: false

- name: Build example (${{ matrix.example }})
if: hashFiles(format('examples/{0}/package.json', matrix.example)) != ''
working-directory: examples/${{ matrix.example }}
run: |
if grep -q '"build"' package.json; then
npm run build
fi
Loading