Skip to content

Commit 7923306

Browse files
chore: bump node from v20 to v24
fix: update ESLint rules and improve mock implementation in Maps tests chore: upgrade actions to latest versions across workflows chore: update Node.js setup to use version from .nvmrc
1 parent ecab899 commit 7923306

21 files changed

Lines changed: 111 additions & 108 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@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
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/actions/setup-python/action.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ description: "Setup Python and install dependencies"
33
runs:
44
using: "composite"
55
steps:
6-
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
6+
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
77
with:
88
python-version: '3.12'
99
- run: pip install PyYAML httplib2

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,19 @@ runs:
1919

2020
- name: "Setup Java 21"
2121
id: setup-java
22-
uses: actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 #v4
22+
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 #v5.2.0
2323
with:
2424
distribution: "temurin"
2525
java-version: "21"
2626

2727
- name: "Cache Mendix runtime"
28-
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 #v4
28+
uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 #v5
2929
with:
3030
path: tmp/runtime.tar.gz
3131
key: mendix-runtime-${{ inputs.mendix_version }}
3232

3333
- name: "Cache m2ee-tools"
34-
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 #v4
34+
uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 #v5
3535
with:
3636
path: tmp/m2ee
3737
key: m2ee-tools-v1

.github/actions/slack-notification/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ runs:
1616
using: "composite"
1717
steps:
1818
- name: Send Slack notification
19-
uses: slackapi/slack-github-action@485a9d42d3a73031f12ec201c457e2162c45d02d #v2
19+
uses: slackapi/slack-github-action@af78098f536edbc4de71162a307590698245be95 # v3.0.1
2020
with:
2121
method: chat.postMessage
2222
token: ${{ inputs.bot-token }}

.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@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
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@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
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@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3131
with:
3232
submodules: false
3333
- name: "Defining node version"
34-
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3
34+
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
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 }}

0 commit comments

Comments
 (0)