Skip to content

Commit d27a991

Browse files
chore: bump node from v20 to v24
fix: update postinstall script to use --if-present in package.json chore: update actions to latest versions across workflows fix: update ESLint rules and improve mock implementation in Maps tests fix: disable package manager cache in Node.js setup across workflows fix: update onMapReady prop handling in mocked MapView component fix: update actions/upload-artifact to version 7 across workflows and actions fix: update actions/labeler to version 6.0.1 in PullRequestLabeler workflow fix: update action-zip version in create-native-bundle action fix: enable overwrite for existing files in copyJsModule function fix: correct action-zip version in create-native-bundle action
1 parent bcfd769 commit d27a991

21 files changed

Lines changed: 97 additions & 89 deletions

File tree

.eslintrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ delete base.parserOptions.project;
66

77
module.exports = deepmerge(base, {
88
rules: {
9+
"react/react-in-jsx-scope": "off",
910
"@typescript-eslint/ban-ts-ignore": "off",
1011
"no-unused-expressions": "off",
1112
"@typescript-eslint/no-unused-expressions": "error",

.github/actions/archive-test-results/action.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,23 @@ runs:
1616
using: composite
1717
steps:
1818
- name: Archive runtime logs
19-
uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 #v4
19+
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f #v7
2020
if: always()
2121
with:
2222
name: ${{ inputs.platform }}-runtime-logs-${{ inputs.test-type }}
2323
path: log/*.log
2424
if-no-files-found: ignore
2525

2626
- name: Archive test screenshots
27-
uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 #v4
27+
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f #v7
2828
if: always()
2929
with:
3030
name: ${{ inputs.platform }}-screenshots-${{ inputs.test-type }}
3131
path: ${{ inputs.workspace-path }}/maestro/images/actual/${{ inputs.platform }}/**/*.png
3232
if-no-files-found: ignore
3333

3434
- name: Archive artifacts
35-
uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 #v4
35+
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f #v7
3636
if: always()
3737
with:
3838
name: ${{ inputs.platform }}-artifacts-${{ inputs.test-type }}

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ runs:
1919
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"
22-
uses: montudor/action-zip@v1.0.0
22+
uses: montudor/action-zip@0852c26906e00f8a315c704958823928d8018b28 # v1.0.0
2323
with:
2424
args: unzip -qq project.zip
2525
- name: "Extract deployment package"
26-
uses: montudor/action-zip@v1.0.0
26+
uses: montudor/action-zip@0852c26906e00f8a315c704958823928d8018b28 # v1.0.0
2727
with:
2828
args: unzip -qq ${{ inputs.mda-file }} -d Native-Mobile-Resources-main/deployment
2929
- name: "Create bundle for ${{ inputs.platform }}"
@@ -41,7 +41,7 @@ runs:
4141
env:
4242
NODE_OPTIONS: --max_old_space_size=6144
4343
- name: "Upload bundle for ${{ inputs.platform }}"
44-
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
44+
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7
4545
with:
4646
name: ${{ inputs.platform }}-bundle
4747
path: ${{ inputs.platform }}

.github/actions/setup-maestro/action.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ runs:
44
using: "composite"
55
steps:
66
- name: "Cache Maestro"
7-
uses: actions/cache@d4323d4df104b026a6aa633fdb11d772146be0bf # v4
7+
uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5
88
with:
99
path: $HOME/.local/bin/maestro
1010
key: maestro-${{ runner.os }}-v1

.github/actions/setup-node-with-cache/action.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,20 @@ runs:
44
using: 'composite'
55
steps:
66
- name: "Set up node"
7-
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4
7+
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5
88
with:
99
node-version-file: .nvmrc
10+
package-manager-cache: false
1011

1112
- name: "Setup pnpm"
12-
uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4
13+
uses: pnpm/action-setup@a8198c4bff370c8506180b035930dea56dbd5288 # v5
1314
- name: "Get pnpm store directory"
1415
id: pnpm-cache
1516
shell: bash
1617
run: |
1718
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
1819
- name: "Setup cache"
19-
uses: actions/cache@d4323d4df104b026a6aa633fdb11d772146be0bf # v4
20+
uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5
2021
with:
2122
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
2223
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}

.github/workflows/Build.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
steps:
2121
- name: "Checking changed files"
2222
id: files
23-
uses: softprops/diffset@db8c4e13f5cc3f8ab666ba2cb6998b688058a41c # v1
23+
uses: softprops/diffset@d60d53313c1b61c12ccb0fc76cbde5a14ae5d330 # v3
2424
if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository
2525
with:
2626
base: main
@@ -29,25 +29,26 @@ jobs:
2929
env:
3030
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3131
- name: "Checking-out code"
32-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
32+
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
3333
with:
3434
fetch-depth: 0
3535
- name: "Fetching main to compare"
3636
if: github.event_name == 'pull_request' && steps.files.outputs.global_files == ''
3737
run: git fetch --no-tags --prune --depth=1 origin +refs/heads/${{ github.base_ref }}:refs/remotes/origin/${{ github.base_ref }}
3838
- name: "Defining node version"
39-
uses: actions/setup-node@d86ebcd40b3cb50b156bfa44dd277faf38282d12 # v4
39+
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5
4040
with:
4141
node-version-file: ".nvmrc"
42+
package-manager-cache: false
4243
- name: "Setup pnpm"
43-
uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4
44+
uses: pnpm/action-setup@a8198c4bff370c8506180b035930dea56dbd5288 # v5
4445
- name: "Get pnpm store directory"
4546
id: pnpm-cache
4647
shell: bash
4748
run: |
4849
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
4950
- name: "Setup cache"
50-
uses: actions/cache@d4323d4df104b026a6aa633fdb11d772146be0bf # v4
51+
uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5
5152
with:
5253
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
5354
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}

.github/workflows/BuildMpk.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,16 @@ jobs:
2727

2828
steps:
2929
- name: "Checking-out code"
30-
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3
30+
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
3131
with:
3232
submodules: false
3333
- name: "Defining node version"
34-
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3
34+
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5
3535
with:
3636
node-version-file: ".nvmrc"
37+
package-manager-cache: false
3738
- name: "Setup pnpm"
38-
uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4
39+
uses: pnpm/action-setup@a8198c4bff370c8506180b035930dea56dbd5288 # v5
3940
- name: "Installing dependencies"
4041
run: pnpm install
4142
- name: "Bumping version"
@@ -52,7 +53,7 @@ jobs:
5253
VERSION: ${{ steps.bump_version.outputs.VERSION }}
5354

5455
- name: "Upload MPK artifact"
55-
uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 #v4
56+
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f #v7
5657
with:
5758
name: ${{ env.ARTIFACT_NAME }}-${{ steps.bump_version.outputs.VERSION }}
5859
path: ${{ env.ARTIFACT_PATH }}

.github/workflows/MarketplaceRelease.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212

1313
steps:
1414
- name: "Checking-out code"
15-
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3
15+
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
1616
with:
1717
submodules: false
1818
- name: "Defining Environment Variables"
@@ -25,11 +25,12 @@ jobs:
2525
msg: "${{ steps.variables.outputs.tag }}"
2626
seperator: "-v"
2727
- name: "Defining node version"
28-
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3
28+
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5
2929
with:
3030
node-version-file: ".nvmrc"
31+
package-manager-cache: false
3132
- name: "Setup pnpm"
32-
uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4
33+
uses: pnpm/action-setup@a8198c4bff370c8506180b035930dea56dbd5288 # v5
3334
- name: "Installing dependencies"
3435
run: pnpm install
3536
- name: "Building native widgets and js actions"

0 commit comments

Comments
 (0)