Skip to content

chore(ci): Real switch between java versions, test under java17 #13

chore(ci): Real switch between java versions, test under java17

chore(ci): Real switch between java versions, test under java17 #13

Workflow file for this run

name: Pull Requests
on:
pull_request:
types: [opened, edited, reopened, synchronize]
branches:
- master
jobs:
unit-test:
name: Unit Test
runs-on: ubuntu-latest
strategy:
matrix:
nodeVersion: [ 16, 18, 20 ]
jdkVersion: [ 9, 10, 11, 17, 21 ]
steps:
- name: Checkout source code
uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.nodeVersion }}
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: ${{ matrix.jdkVersion }}
- name: npm ci
run: npm ci
- name: Unit test
run: npm test