chore: cancel previous workflow runs in progress #266
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: Validate Example Apps | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: ['**'] | |
jobs: | |
test-example: | |
strategy: | |
matrix: | |
example: [basic, cookbook] | |
name: Test Example | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: 'yarn' | |
- name: Install and build | |
run: yarn --cwd examples/${{ matrix.example }} install | |
- name: Type Check | |
run: yarn --cwd examples/${{ matrix.example }} typecheck | |
- name: Test | |
run: yarn --cwd examples/${{ matrix.example }} test |