Skip to content

Commit f9c3e35

Browse files
committed
Use main branch of the test project
1 parent 5993d76 commit f9c3e35

3 files changed

Lines changed: 11 additions & 14 deletions

File tree

.github/actions/create-native-bundle/action.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ runs:
1616
apt install curl -y
1717
shell: bash
1818
- name: "Download test project"
19-
run: curl -L -o project.zip https://github.com/mendix/Native-Mobile-Resources/archive/refs/heads/maestro-widgets.zip
19+
run: curl -L -o project.zip https://github.com/mendix/Native-Mobile-Resources/archive/refs/heads/main.zip
2020
shell: bash
2121
- name: "Extract test project"
2222
uses: montudor/action-zip@v1.0.0
@@ -25,11 +25,11 @@ runs:
2525
- name: "Extract deployment package"
2626
uses: montudor/action-zip@v1.0.0
2727
with:
28-
args: unzip -qq ${{ inputs.mda-file }} -d Native-Mobile-Resources-maestro-widgets/deployment
28+
args: unzip -qq ${{ inputs.mda-file }} -d Native-Mobile-Resources-main/deployment
2929
- name: "Create bundle for ${{ inputs.platform }}"
3030
run: |
3131
mkdir -p ${{ inputs.platform }}/assets
32-
cd Native-Mobile-Resources-maestro-widgets/deployment/native && \
32+
cd Native-Mobile-Resources-main/deployment/native && \
3333
/tmp/mxbuild/modeler/tools/node/linux-x64/node \
3434
/tmp/mxbuild/modeler/tools/node/node_modules/react-native/cli.js \
3535
bundle --verbose --platform ${{ inputs.platform }} --dev false \

.github/workflows/NativePipeline.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ jobs:
216216
apt update && apt upgrade -y
217217
apt install curl -y
218218
- name: "Download test project"
219-
run: curl -L -o project.zip https://github.com/mendix/Native-Mobile-Resources/archive/refs/heads/maestro-widgets.zip
219+
run: curl -L -o project.zip https://github.com/mendix/Native-Mobile-Resources/archive/refs/heads/main.zip
220220
- name: "Extract test project"
221221
uses: montudor/action-zip@0852c26906e00f8a315c704958823928d8018b28 # v1.0.0
222222
with:
@@ -233,26 +233,26 @@ jobs:
233233
run: |
234234
if compgen -G 'resources/pluggableWidgets/**/dist/*/*.mpk' > /dev/null; then
235235
for oldPath in resources/pluggableWidgets/**/dist/*/*.mpk; do
236-
newPath=Native-Mobile-Resources-maestro-widgets/widgets/$(basename $oldPath)
236+
newPath=Native-Mobile-Resources-main/widgets/$(basename $oldPath)
237237
mv -f $oldPath $newPath
238238
done
239-
mx update-widgets --loose-version-check Native-Mobile-Resources-maestro-widgets/NativeComponentsTestProject.mpr
239+
mx update-widgets --loose-version-check Native-Mobile-Resources-main/NativeComponentsTestProject.mpr
240240
fi
241241
- name: "Move mobile-resources"
242242
shell: bash
243243
run: |
244244
if compgen -G 'resources/jsActions/mobile-resources-native/*' > /dev/null; then
245-
mv -f resources/jsActions/mobile-resources-native/* Native-Mobile-Resources-maestro-widgets/javascriptsource/nativemobileresources/actions/
245+
mv -f resources/jsActions/mobile-resources-native/* Native-Mobile-Resources-main/javascriptsource/nativemobileresources/actions/
246246
fi
247247
- name: "Move nanoflow-actions"
248248
shell: bash
249249
run: |
250250
if compgen -G 'resources/jsActions/mobile-resources-native/*' > /dev/null; then
251-
mv -f resources/jsActions/nanoflow-actions-native/* Native-Mobile-Resources-maestro-widgets/javascriptsource/nanoflowcommons/actions/
251+
mv -f resources/jsActions/nanoflow-actions-native/* Native-Mobile-Resources-main/javascriptsource/nanoflowcommons/actions/
252252
fi
253253
- name: "Force rebuild test project"
254254
run: |
255-
mxbuild -o automation.mda --loose-version-check Native-Mobile-Resources-maestro-widgets/NativeComponentsTestProject.mpr
255+
mxbuild -o automation.mda --loose-version-check Native-Mobile-Resources-main/NativeComponentsTestProject.mpr
256256
- name: "Upload MDA"
257257
uses: actions/upload-artifact@v4
258258
with:

scripts/test/e2e-native.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,14 @@ async function main() {
2020
const ip = nodeIp.address();
2121
const ghcr = process.env.CI && process.env.FORKED !== "true" ? "ghcr.io/mendix/native-widgets/" : "";
2222

23-
const testArchivePath = await getTestProject(
24-
"https://github.com/mendix/Native-Mobile-Resources",
25-
"maestro-widgets"
26-
);
23+
const testArchivePath = await getTestProject("https://github.com/mendix/Native-Mobile-Resources", "main");
2724
const root = process.cwd();
2825
const projectsRoot = join(root, "tests");
2926
const projectDir = join(root, "tests/testProject");
3027
try {
3128
mkdir("-p", projectsRoot);
3229
execSync(`unzip -o ${testArchivePath} -d ${projectsRoot}`);
33-
mv(`${projectsRoot}/Native-Mobile-Resources-maestro-widgets`, projectDir);
30+
mv(`${projectsRoot}/Native-Mobile-Resources-main`, projectDir);
3431
rm("-f", testArchivePath);
3532
} catch (e) {
3633
throw new Error("Failed to unzip the test project into testProject", e.message);

0 commit comments

Comments
 (0)