13
13
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
14
14
jobs :
15
15
codegen :
16
- runs-on : windows-2019
16
+ runs-on : windows-2022
17
17
steps :
18
18
- name : setup git
19
19
run : |
22
22
23
23
- uses : actions/checkout@v2
24
24
25
+ - name : yarn install
26
+ run : yarn install
27
+
25
28
- uses : nuget/setup-nuget@v1
26
29
27
30
- name : NuGet restore
31
34
run : dotnet run -verbose -winmd ..\..\example\windows\packages\Microsoft.UI.Xaml.2.6.0\lib\uap10.0\Microsoft.UI.Xaml.winmd
32
35
working-directory : package\Codegen
33
36
37
+ - name : build TS
38
+ run : yarn build
39
+
34
40
- name : verify no changes from CodeGen
35
41
shell : powershell
36
42
run : |
42
48
runs-on : windows-2022
43
49
steps :
44
50
- uses : actions/checkout@v2
51
+
45
52
- name : yarn install
46
53
run : yarn install
47
54
@@ -60,15 +67,63 @@ jobs:
60
67
if-no-files-found : error
61
68
62
69
63
- testcli :
70
+ testcli-old :
64
71
runs-on : windows-2019
65
72
strategy :
66
73
fail-fast : false
67
74
matrix :
68
75
rnwSource : ['Source', 'NuGet'] # test building with both RNW source and RNW NuGet
69
- rnwVersion : ['^0.64', '^0. 67', '^0.69'] # test key versions (min, partners)
76
+ rnwVersion : ['^0.67', '^0.69'] # test key versions (min, partners)
70
77
steps :
71
78
- uses : actions/checkout@v2
79
+
80
+ - name : yarn install
81
+ run : yarn install
82
+
83
+ - name : build TS
84
+ run : yarn build
85
+
86
+ - name : yarn link
87
+ run : yarn link
88
+ working-directory : package
89
+
90
+ - name : create ${{ matrix.rnwVersion }} app
91
+ run : npx react-native init testrnx --template react-native@${{ matrix.rnwVersion }}
92
+
93
+ - name : add Windows (RNW via ${{ matrix.rnwSource }})
94
+ run : npx react-native-windows-init --overwrite ${{ matrix.rnwSource == 'NuGet' && '--experimentalNuGetDependency true' || '' }}
95
+ working-directory : testrnx
96
+
97
+ - name : link react-native-xaml
98
+ run : yarn link react-native-xaml
99
+ working-directory : testrnx
100
+
101
+ - name : add react-native-xaml
102
+ run : yarn add react-native-xaml
103
+ working-directory : testrnx
104
+
105
+ - name : autolink
106
+ run : npx react-native autolink-windows --logging
107
+ working-directory : testrnx
108
+
109
+ - name : update WinUI package version
110
+ run : ..\.github\workflows\SetUpAppForNuget.ps1 ${{ matrix.rnwSource == 'NuGet' && '-UseNuGet' || '' }}
111
+ working-directory : testrnx
112
+
113
+ - name : build app
114
+ run : npx react-native run-windows --no-launch --no-deploy --no-packager --logging
115
+ working-directory : testrnx
116
+
117
+ testcli :
118
+ runs-on : windows-2022
119
+ strategy :
120
+ fail-fast : false
121
+ matrix :
122
+ rnwSource : ['Source', 'NuGet'] # test building with both RNW source and RNW NuGet
123
+ rnwVersion : ['^0.71'] # test key versions (latest)
124
+ steps :
125
+ - uses : actions/checkout@v2
126
+
72
127
- name : yarn install
73
128
run : yarn install
74
129
@@ -107,7 +162,7 @@ jobs:
107
162
working-directory : testrnx
108
163
109
164
package :
110
- runs-on : windows-2019
165
+ runs-on : windows-2022
111
166
steps :
112
167
- uses : actions/checkout@v2
113
168
0 commit comments