Skip to content

Commit ee33c90

Browse files
[MOO-2268] Upgrade Node and GitHub Actions to Node v24 (#476)
2 parents 3ec2ea4 + bfe00c1 commit ee33c90

22 files changed

Lines changed: 137 additions & 126 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: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,23 @@ 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/main.zip
19+
run: curl -L -o project.zip https://github.com/mendix/Native-Mobile-Resources/archive/refs/heads/mx/11.6.x.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
25+
- name: "Rename extracted folder"
26+
run: mv Native-Mobile-Resources-mx-11.6.x NMR
27+
shell: bash
2528
- name: "Extract deployment package"
26-
uses: montudor/action-zip@v1.0.0
29+
uses: montudor/action-zip@0852c26906e00f8a315c704958823928d8018b28 # v1.0.0
2730
with:
28-
args: unzip -qq ${{ inputs.mda-file }} -d Native-Mobile-Resources-main/deployment
31+
args: unzip -qq ${{ inputs.mda-file }} -d NMR/deployment
2932
- name: "Create bundle for ${{ inputs.platform }}"
3033
run: |
3134
mkdir -p ${{ inputs.platform }}/assets
32-
cd Native-Mobile-Resources-main/deployment/native && \
35+
cd NMR/deployment/native && \
3336
/tmp/mxbuild/modeler/tools/node/linux-x64/node \
3437
/tmp/mxbuild/modeler/tools/node/node_modules/react-native/cli.js \
3538
bundle --verbose --platform ${{ inputs.platform }} --dev false \
@@ -41,7 +44,7 @@ runs:
4144
env:
4245
NODE_OPTIONS: --max_old_space_size=6144
4346
- name: "Upload bundle for ${{ inputs.platform }}"
44-
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
47+
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7
4548
with:
4649
name: ${{ inputs.platform }}-bundle
4750
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
channel-id: ${{ inputs.channel-id }}
2222
slack-message: ${{ inputs.message }}

.github/workflows/Build.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,12 @@ on:
55
branches:
66
- main
77
- 'mx/release/**'
8+
- 'mx/11.6.x'
89
pull_request:
910
branches:
1011
- main
1112
- 'mx/release/**'
13+
- 'mx/11.6.x'
1214
jobs:
1315
test:
1416
name: "Build (${{ matrix.os }})"
@@ -20,7 +22,7 @@ jobs:
2022
steps:
2123
- name: "Checking changed files"
2224
id: files
23-
uses: softprops/diffset@db8c4e13f5cc3f8ab666ba2cb6998b688058a41c # v1
25+
uses: softprops/diffset@d60d53313c1b61c12ccb0fc76cbde5a14ae5d330 # v3
2426
if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository
2527
with:
2628
base: main
@@ -29,25 +31,26 @@ jobs:
2931
env:
3032
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3133
- name: "Checking-out code"
32-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
34+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3335
with:
3436
fetch-depth: 0
3537
- name: "Fetching main to compare"
3638
if: github.event_name == 'pull_request' && steps.files.outputs.global_files == ''
3739
run: git fetch --no-tags --prune --depth=1 origin +refs/heads/${{ github.base_ref }}:refs/remotes/origin/${{ github.base_ref }}
3840
- name: "Defining node version"
39-
uses: actions/setup-node@d86ebcd40b3cb50b156bfa44dd277faf38282d12 # v4
41+
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
4042
with:
4143
node-version-file: ".nvmrc"
44+
package-manager-cache: false
4245
- name: "Setup pnpm"
43-
uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4
46+
uses: pnpm/action-setup@a8198c4bff370c8506180b035930dea56dbd5288 # v5
4447
- name: "Get pnpm store directory"
4548
id: pnpm-cache
4649
shell: bash
4750
run: |
4851
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
4952
- name: "Setup cache"
50-
uses: actions/cache@d4323d4df104b026a6aa633fdb11d772146be0bf # v4
53+
uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5
5154
with:
5255
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
5356
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)