-
Notifications
You must be signed in to change notification settings - Fork 28
103 lines (92 loc) · 3.06 KB
/
pr.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
name: PR
on:
pull_request:
branches: [ main ]
jobs:
setupcheck:
name: Setup Check
runs-on: windows-2022
steps:
- uses: actions/checkout@v3
- name: yarn install
run: yarn install
- name: beachball check
run: npx beachball check --verbose --changehint "::error::Run `yarn change` from root of repo to generate a change file."
call-runcodegen:
name: Run CodeGen
needs: setupcheck
uses: ./.github/workflows/template-runcodegen.yml
with:
vmImage: windows-2022
call-buildexample:
name: Build Example
needs: setupcheck
strategy:
fail-fast: true
matrix:
exampleName: ['example', 'examplenuget'] # build both examples
uses: ./.github/workflows/template-buildexample.yml
with:
vmImage: windows-2022
exampleName: ${{ matrix.exampleName }}
call-testcli:
name: Test CLI (VS 2022)
needs: setupcheck
strategy:
fail-fast: true
matrix:
rnwVersion: ['latest', '0.72-stable'] # test *key* versions that use VS 2022. aka any RNW version >= 0.71 used by supported partners and/or Active/Maintenance from https://microsoft.github.io/react-native-windows/support
useRnwNuGet: [false, true] # test building with both RNW source and RNW NuGet
include:
- rnwVersion: 'latest'
rnTemplate: 'react-native@latest'
- rnwVersion: '0.72-stable'
rnTemplate: '[email protected]'
uses: ./.github/workflows/template-testcli.yml
with:
vmImage: windows-2022
rnwVersion: ${{ matrix.rnwVersion }}
useRnwNuGet: ${{ matrix.useRnwNuGet }}
rnTemplate: ${{ matrix.rnTemplate }}
call-testcli-old:
name: Test CLI (VS 2019)
needs: setupcheck
strategy:
fail-fast: true
matrix:
rnwVersion: ['0.69-stable'] # test *key* versions that use VS 2019. aka any RNW version < 0.71 that are used by supported partners
useRnwNuGet: [false, true] # test building with both RNW source and RNW NuGet
include:
- rnwVersion: '0.69-stable'
rnTemplate: '[email protected]'
uses: ./.github/workflows/template-testcli.yml
with:
vmImage: windows-2019
rnwVersion: ${{ matrix.rnwVersion }}
useRnwNuGet: ${{ matrix.useRnwNuGet }}
rnTemplate: ${{ matrix.rnTemplate }}
call-buildnpmpackage:
name: Build NPM Package
needs: setupcheck
uses: ./.github/workflows/template-buildnpmpackage.yml
with:
vmImage: windows-2022
call-buildrnx:
name: Build RNX
needs: setupcheck
strategy:
fail-fast: true
matrix:
configuration: ['Release']
platform: ['x64']
uses: ./.github/workflows/template-buildrnx.yml
with:
vmImage: windows-2022
configuration: ${{ matrix.configuration }}
platform: ${{ matrix.platform }}
prcheck:
name: Successful PR Check
runs-on: ubuntu-latest
needs: [setupcheck, call-runcodegen, call-testcli, call-testcli-old, call-buildnpmpackage, call-buildrnx]
steps:
- uses: actions/checkout@v3