Skip to content

Commit 17468f9

Browse files
committed
chore: enable example apps
1 parent 04ee407 commit 17468f9

File tree

1 file changed

+16
-6
lines changed

1 file changed

+16
-6
lines changed

.github/workflows/example-apps.yml

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
1-
name: Test Example Apps
1+
name: Validate Example Apps
22

3-
on: [workflow_dispatch]
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: ['**']
48

59
jobs:
610
test-example:
711
strategy:
812
matrix:
9-
node: [18, 20, 22]
10-
example: [basic, react-navigation]
13+
example: [basic, cookbook]
14+
1115
name: Test Example
1216
runs-on: ubuntu-latest
1317
timeout-minutes: 10
@@ -18,8 +22,14 @@ jobs:
1822
- name: Setup Node.js
1923
uses: actions/setup-node@v4
2024
with:
21-
node-version: ${{ matrix.node }}
25+
node-version: 20
2226
cache: 'yarn'
2327

2428
- name: Install and build
25-
run: cd examples/${{ matrix.example }} && yarn install && yarn test
29+
run: yarn --cwd examples/${{ matrix.example }} install
30+
31+
- name: Type Check
32+
run: yarn --cwd examples/${{ matrix.example }} typecheck
33+
34+
- name: Test
35+
run: yarn --cwd examples/${{ matrix.example }} test

0 commit comments

Comments
 (0)