Skip to content

Update examples

Update examples #2

Workflow file for this run

name: Build examples
on:
pull_request:
paths:
- 'examples/**'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: '16.x'
- name: Install global TypeScript
run: npm install -g typescript
- name: Build examples
run: |
for dir in examples/*/
do
if [ -f "$dir/tsconfig.json" ]; then
echo "Building $dir"
cd $dir
yarn install
tsc
cd -
else
echo "Skipping $dir (no tsconfig.json found)"
fi
done