Skip to content

Update GH testing to use jdk 21 as latest #148

Update GH testing to use jdk 21 as latest

Update GH testing to use jdk 21 as latest #148

Workflow file for this run

name: "test"
on:
pull_request:
branches:
- "*"
push:
branches:
- "*"
env:
jdkver_latest: 21
jobs:
test-linux:
name: "Linux"
runs-on: "ubuntu-latest"
strategy:
fail-fast: false
matrix:
jdkconf:
- JDK 8
- JDK 11
- JDK 17
- JDK Latest
include:
- jdkconf: JDK 8
jdkver: "8"
- jdkconf: JDK 11
jdkver: "11"
- jdkconf: JDK 17
jdkver: "17"
steps:
- uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: ${{ matrix.jdkver || env.jdkver_latest }}
- name: Run
run: make SSLContextInfo SSLSocketInfo ssl-tests
test-linux-pkcs11-nss-fips:
name: "Linux SunPKCS11-NSS-FIPS"
runs-on: "ubuntu-latest"
strategy:
fail-fast: false
matrix:
jdkconf:
- JDK 8
- JDK 11
- JDK 17
include:
- jdkconf: JDK 8
jdkver: "8"
- jdkconf: JDK 11
jdkver: "11"
- jdkconf: JDK 17
jdkver: "17"
steps:
- name: "Install nss"
run: |
sudo apt-get update
sudo apt-get install libnss3 libnss3-tools
- uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: ${{ matrix.jdkver }}
- name: Run
run: |
make ssl-tests TEST_PKCS11_FIPS=1
test-linux-openssl-client:
name: "Linux openssl client"
runs-on: "ubuntu-latest"
strategy:
fail-fast: false
matrix:
jdkconf:
- JDK 8
- JDK 11
- JDK 17
- JDK Latest
include:
- jdkconf: JDK 8
jdkver: "8"
- jdkconf: JDK 11
jdkver: "11"
- jdkconf: JDK 17
jdkver: "17"
steps:
- name: "Install openssl"
run: |
sudo apt-get update
sudo apt-get install openssl
- uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: ${{ matrix.jdkver || env.jdkver_latest }}
- name: Run
run: make ssl-tests SSLTESTS_USE_OPENSSL_CLIENT=1
test-linux-gnutls-client:
name: "Linux gnutls client"
runs-on: "ubuntu-latest"
strategy:
fail-fast: false
matrix:
jdkconf:
- JDK 8
- JDK 11
- JDK 17
- JDK Latest
include:
- jdkconf: JDK 8
jdkver: "8"
- jdkconf: JDK 11
jdkver: "11"
- jdkconf: JDK 17
jdkver: "17"
steps:
- name: "Install gnutls"
run: |
sudo apt-get update
sudo apt-get install gnutls-bin
- uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: ${{ matrix.jdkver || env.jdkver_latest }}
- name: Run
run: make ssl-tests SSLTESTS_USE_GNUTLS_CLIENT=1
test-linux-nss-client:
name: "Linux nss client"
runs-on: "ubuntu-latest"
strategy:
fail-fast: false
matrix:
jdkconf:
- JDK 8
- JDK 11
- JDK 17
- JDK Latest
include:
- jdkconf: JDK 8
jdkver: "8"
- jdkconf: JDK 11
jdkver: "11"
- jdkconf: JDK 17
jdkver: "17"
steps:
- name: "Install nss"
run: |
sudo apt-get update
sudo apt-get install libnss3-tools libnss3-dev gcc pkg-config
if ! type listsuites ; then
curl -L -f -o listsuites.c https://raw.githubusercontent.com/servo/nss/949eb9848f4fa5f83756f3ab7fdf9b0d3f20d37f/cmd/listsuites/listsuites.c
gcc $( pkg-config --cflags nss ) -o listsuites listsuites.c $( pkg-config --libs nss )
sudo cp -a listsuites /usr/bin/
rm -f listsuites listsuites.c
fi
- uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: ${{ matrix.jdkver || env.jdkver_latest }}
- name: Run
run: make ssl-tests SSLTESTS_USE_NSS_CLIENT=1
test-linux-bcjsse:
name: "Linux BCJSSE"
runs-on: "ubuntu-latest"
strategy:
fail-fast: false
matrix:
jdkconf:
- JDK 8
- JDK 11
- JDK 17
- JDK Latest
include:
- jdkconf: JDK 8
jdkver: "8"
- jdkconf: JDK 11
jdkver: "11"
- jdkconf: JDK 17
jdkver: "17"
steps:
- uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: ${{ matrix.jdkver || env.jdkver_latest }}
- name: Run
run: make ssl-tests TEST_BCJSSE=1
test-linux-bcfips:
name: "Linux BCFIPS"
runs-on: "ubuntu-latest"
strategy:
fail-fast: false
matrix:
jdkconf:
- JDK 8
- JDK 11
include:
- jdkconf: JDK 8
jdkver: "8"
- jdkconf: JDK 11
jdkver: "11"
steps:
- uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: ${{ matrix.jdkver }}
- name: Run
run: make ssl-tests TEST_BCFIPS=1
test-linux-bc-2nd:
name: "Linux BC 2ND"
runs-on: "ubuntu-latest"
strategy:
fail-fast: false
matrix:
jdkconf:
- JDK 8
- JDK 11
- JDK 17
- JDK Latest
include:
- jdkconf: JDK 8
jdkver: "8"
- jdkconf: JDK 11
jdkver: "11"
- jdkconf: JDK 17
jdkver: "17"
steps:
- uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: ${{ matrix.jdkver || env.jdkver_latest }}
- name: Run
# Legacy algorithms used for keystore as workaround to BC issue:
# https://github.com/bcgit/bc-java/issues/958
run: make ssl-tests TEST_BC_2ND=1 KEYSTORE_PKCS12_LEGACY=1
test-windows:
name: "Windows"
runs-on: "windows-latest"
strategy:
fail-fast: false
matrix:
jdkconf:
- JDK 8
- JDK 11
- JDK 17
- JDK Latest
include:
- jdkconf: JDK 8
jdkver: "8"
- jdkconf: JDK 11
jdkver: "11"
- jdkconf: JDK 17
jdkver: "17"
steps:
- uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: ${{ matrix.jdkver || env.jdkver_latest }}
- uses: msys2/setup-msys2@v2
with:
update: true
install: make
- name: Run
run: make SSLContextInfo SSLSocketInfo ssl-tests
test-macos:
name: "MacOS"
runs-on: "macos-latest"
strategy:
fail-fast: false
matrix:
jdkconf:
- JDK 8
- JDK 11
- JDK 17
- JDK Latest
include:
- jdkconf: JDK 8
jdkver: "8"
- jdkconf: JDK 11
jdkver: "11"
- jdkconf: JDK 17
jdkver: "17"
steps:
- uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: ${{ matrix.jdkver || env.jdkver_latest }}
- name: Run
run: make SSLContextInfo SSLSocketInfo ssl-tests
test-linux-jtreg:
name: "Linux Jtreg"
runs-on: "ubuntu-latest"
strategy:
fail-fast: false
matrix:
jdkconf:
- JDK 8
- JDK 11
- JDK 17
- JDK Latest
include:
- jdkconf: JDK 8
jdkver: "8"
- jdkconf: JDK 11
jdkver: "11"
- jdkconf: JDK 17
jdkver: "17"
steps:
- uses: actions/checkout@v3
- name: "Install dependencies"
run: |
sudo apt-get update
sudo apt-get install make openssl gnutls-bin libnss3 libnss3-tools libnss3-dev gcc pkg-config
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: ${{ matrix.jdkver || env.jdkver_latest }}
- name: Download jtreg
run: |
wget https://ci.adoptopenjdk.net/view/Dependencies/job/dependency_pipeline/lastSuccessfulBuild/artifact/jtreg/jtreg5.1-b01.tar.gz
tar -xf jtreg5.1-b01.tar.gz
- name: Run
run: |
jtreg/bin/jtreg -jdk:$JAVA_HOME -v:fail,error,summary -retain:fail,error -ignore:quiet -xml -conc:2 jtreg-wrappers