Skip to content

Typescript Examples #574

Typescript Examples

Typescript Examples #574

name: Typescript Examples
on:
workflow_call:
workflow_dispatch:
pull_request:
paths:
- "node/**"
- "browser/**"
- ".github/workflows/*typescript*"
schedule:
- cron: '0 9 * * WED' # https://crontab.guru/#0_9_*_*_WED
jobs:
test_typescript:
name: Build Node & Browser Samples
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, macos-latest,] # windows-latest] - disabled due to wasm-pack bug with windows
node-version: [ 16 ]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
name: Setup Node v${{ matrix.node-version }}
with:
node-version: ${{ matrix.node-version }}
- name: Build Node Demo
run: |
npm install
npm run start
working-directory: ./node/basic
- name: Build Basic Webpack 4 Demo
run: |
npm install
CI=false npm run build
working-directory: ./browser/basic-webpack-4
- name: Build Basic Create React App 4
run: |
npm install
CI=false npm run build
working-directory: ./browser/basic-create-react-app-4
- name: Build Basic Create React App 5
run: |
npm install
CI=false npm run build
working-directory: ./browser/basic-create-react-app-5
- name: Build Basic Webpack 5 Demo
run: |
npm install
CI=false npm run build
working-directory: ./browser/basic-webpack-5
- name: Build React Wallet Demo
run: |
npm install
CI=false npm run build
working-directory: ./browser/react-wallet