Skip to content

Commit

Permalink
Update test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkusJx authored Dec 24, 2024
1 parent 44ec2a6 commit 118142c
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}}
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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'
Expand Down

0 comments on commit 118142c

Please sign in to comment.