Update examples #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |