File tree Expand file tree Collapse file tree 1 file changed +16
-6
lines changed Expand file tree Collapse file tree 1 file changed +16
-6
lines changed Original file line number Diff line number Diff line change 1
- name : Test Example Apps
1
+ name : Validate Example Apps
2
2
3
- on : [workflow_dispatch]
3
+ on :
4
+ push :
5
+ branches : [main]
6
+ pull_request :
7
+ branches : ['**']
4
8
5
9
jobs :
6
10
test-example :
7
11
strategy :
8
12
matrix :
9
- node : [18, 20, 22 ]
10
- example : [basic, react-navigation]
13
+ example : [basic, cookbook ]
14
+
11
15
name : Test Example
12
16
runs-on : ubuntu-latest
13
17
timeout-minutes : 10
18
22
- name : Setup Node.js
19
23
uses : actions/setup-node@v4
20
24
with :
21
- node-version : ${{ matrix.node }}
25
+ node-version : 20
22
26
cache : ' yarn'
23
27
24
28
- 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
You can’t perform that action at this time.
0 commit comments