From 118142cc22cb690075473406b780224b98871f77 Mon Sep 17 00:00:00 2001 From: Markus <28785953+MarkusJx@users.noreply.github.com> Date: Tue, 24 Dec 2024 16:26:25 +0100 Subject: [PATCH] Update test.yml --- .github/workflows/test.yml | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index fd0c1b2..832b0a3 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -45,35 +45,35 @@ jobs: matrix: include: - os: ubuntu-20.04 - node-version: 18.x + node-version: 20.x arch: x64 features: default - os: ubuntu-latest - node-version: 20.x + node-version: 22.x arch: x64 features: all - os: windows-latest - node-version: 18.x + node-version: 20.x arch: x64 features: default - os: windows-latest - node-version: 20.x + node-version: 22.x arch: x64 features: all - os: windows-latest - node-version: 18.x + node-version: 20.x arch: x86 features: default - os: windows-latest - node-version: 20.x + node-version: 22.x arch: x86 features: default - os: macos-latest - node-version: 18.x + node-version: 20.x arch: x64 features: default - os: macos-latest - node-version: 20.x + node-version: 22.x arch: x64 features: all runs-on: ${{matrix.os}} @@ -117,14 +117,14 @@ jobs: show: all paths: testResults.xml - name: Create package - if: ${{matrix.node-version == '18.x'}} + if: ${{matrix.node-version == '20.x'}} shell: bash run: | node -e 'let p=require("./package.json");p.files.push("dist/*.node");require("fs").writeFileSync("package.json",JSON.stringify(p,null,4))' npm pack - name: Upload package uses: actions/upload-artifact@v4 - if: ${{matrix.node-version == '18.x'}} + if: ${{matrix.node-version == '20.x'}} with: name: java-${{matrix.arch}}-${{matrix.os}} path: java-bridge-*.tgz @@ -133,7 +133,7 @@ jobs: strategy: fail-fast: false matrix: - node-version: [18, 20] + node-version: [20, 22] runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v4 @@ -192,13 +192,13 @@ jobs: show: all paths: testResults.xml - name: Create package - if: ${{matrix.node-version == '18'}} + if: ${{matrix.node-version == '20'}} run: | node -e 'let p=require("./package.json");p.files.push("dist/*.node");require("fs").writeFileSync("package.json",JSON.stringify(p,null,4))' npm pack - name: Upload package uses: actions/upload-artifact@v4 - if: ${{matrix.node-version == '18'}} + if: ${{matrix.node-version == '20'}} with: name: java-arm64-ubuntu path: java-bridge-*.tgz @@ -207,7 +207,7 @@ jobs: strategy: fail-fast: false matrix: - node-version: [18, 20] + node-version: [20, 22] runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v4 @@ -231,13 +231,13 @@ jobs: show: all paths: testResults.xml - name: Create package - if: ${{matrix.node-version == '18'}} + if: ${{matrix.node-version == '20'}} run: | node -e 'let p=require("./package.json");p.files.push("dist/*.node");require("fs").writeFileSync("package.json",JSON.stringify(p,null,4))' npm pack - name: Upload package uses: actions/upload-artifact@v4 - if: ${{matrix.node-version == '18'}} + if: ${{matrix.node-version == '20'}} with: name: java-x64-ubuntu-musl path: java-bridge-*.tgz @@ -249,7 +249,7 @@ jobs: - name: Setup Node.js environment uses: actions/setup-node@v4 with: - node-version: 16.x + node-version: 22.x - uses: actions/setup-java@v4 with: distribution: 'temurin'