Skip to content

Commit 7bccbd7

Browse files
committed
remove duplicate workflow and switch to @react-native-community/cli
1 parent c89b050 commit 7bccbd7

File tree

3 files changed

+3
-38
lines changed

3 files changed

+3
-38
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
strategy:
3131
fail-fast: false
3232
matrix:
33-
rnwVersion: [ 'latest', '0.75-stable'] # test *all* versions that use VS 2022. aka any RNW version >= min in package.json and >= 0.75
33+
rnwVersion: [ 'latest', '0.75-stable', '0.72-stable'] # test *all* versions that use VS 2022. aka any RNW version >= min in package.json and >= 0.75
3434
useRnwNuGet: [false, true] # test building with both RNW source and RNW NuGet
3535
include:
3636
- rnwVersion: 'latest'
@@ -43,23 +43,6 @@ jobs:
4343
rnwVersion: ${{ matrix.rnwVersion }}
4444
useRnwNuGet: ${{ matrix.useRnwNuGet }}
4545
rnTemplate: ${{ matrix.rnTemplate }}
46-
47-
call-testcli-old:
48-
name: Test CLI (VS 2022, RNW 0.72)
49-
strategy:
50-
fail-fast: false
51-
matrix:
52-
rnwVersion: ['0.72-stable'] # Test minimum supported RNW version (currently 0.72)
53-
useRnwNuGet: [false, true] # test building with both RNW source and RNW NuGet
54-
include:
55-
- rnwVersion: '0.72-stable'
56-
rnTemplate: 'react-native@0.72-stable'
57-
uses: ./.github/workflows/template-testcli.yml
58-
with:
59-
vmImage: windows-2022
60-
rnwVersion: ${{ matrix.rnwVersion }}
61-
useRnwNuGet: ${{ matrix.useRnwNuGet }}
62-
rnTemplate: ${{ matrix.rnTemplate }}
6346

6447
call-buildnpmpackage:
6548
name: Build NPM Package

.github/workflows/pr.yml

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
strategy:
4343
fail-fast: true
4444
matrix:
45-
rnwVersion: ['latest', '0.75-stable'] # test *key* versions that use VS 2022. aka any RNW version >= 0.72 used by supported partners and/or Active/Maintenance from https://microsoft.github.io/react-native-windows/support
45+
rnwVersion: ['latest', '0.75-stable', '0.72-stable'] # test *key* versions that use VS 2022. aka any RNW version >= 0.72 used by supported partners and/or Active/Maintenance from https://microsoft.github.io/react-native-windows/support
4646
useRnwNuGet: [false, true] # test building with both RNW source and RNW NuGet
4747
include:
4848
- rnwVersion: 'latest'
@@ -55,24 +55,6 @@ jobs:
5555
rnwVersion: ${{ matrix.rnwVersion }}
5656
useRnwNuGet: ${{ matrix.useRnwNuGet }}
5757
rnTemplate: ${{ matrix.rnTemplate }}
58-
59-
call-testcli-old:
60-
name: Test CLI (VS 2022, RNW 0.72)
61-
needs: setupcheck
62-
strategy:
63-
fail-fast: true
64-
matrix:
65-
rnwVersion: ['0.72-stable'] # Test minimum supported RNW version (currently 0.72)
66-
useRnwNuGet: [false, true] # test building with both RNW source and RNW NuGet
67-
include:
68-
- rnwVersion: '0.72-stable'
69-
rnTemplate: 'react-native@0.72-stable'
70-
uses: ./.github/workflows/template-testcli.yml
71-
with:
72-
vmImage: windows-2022
73-
rnwVersion: ${{ matrix.rnwVersion }}
74-
useRnwNuGet: ${{ matrix.useRnwNuGet }}
75-
rnTemplate: ${{ matrix.rnTemplate }}
7658

7759
call-buildnpmpackage:
7860
name: Build NPM Package

.github/workflows/template-testcli.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
working-directory: ../
4343

4444
- name: add Windows (RNW via ${{ inputs.useRnwNuGet && 'NuGet' || 'Source' }})
45-
run: npx react-native-windows-init --overwrite ${{ inputs.useRnwNuGet && '--experimentalNuGetDependency true' || '' }}
45+
run: npx @react-native-community/cli init --overwrite ${{ inputs.useRnwNuGet && '--experimentalNuGetDependency true' || '' }}
4646
working-directory: ../testrnx
4747

4848
- name: link react-native-xaml

0 commit comments

Comments
 (0)