V5.4 to V6.0 merge + sync to latest .net #470
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: tests/java | |
on: | |
schedule: | |
- cron: "0 10 * * 6" | |
push: | |
branches: [ v6.0 ] | |
pull_request: | |
branches: [ v6.0 ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
RAVENDB_JAVA_TEST_SERVER_PATH: ./RavenDB/Server/Raven.Server | |
RAVENDB_JAVA_TEST_CERTIFICATE_PATH: certs/server.pfx | |
RAVENDB_JAVA_TEST_CA_PATH: /usr/local/share/ca-certificates/ca.crt | |
RAVENDB_JAVA_TEST_HTTPS_SERVER_URL: https://localhost:7325 | |
RAVENDB_BUILD_TYPE: nightly | |
RAVEN_License: ${{ secrets.RAVEN_LICENSE }} | |
strategy: | |
matrix: | |
java-version: [8, 11, 14, 16, 17, 21] | |
serverVersion: ["6.0"] | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK ${{ matrix.java-version }} | |
uses: actions/setup-java@v4 | |
with: | |
java-version: ${{ matrix.java-version }} | |
distribution: "zulu" | |
- name: Download RavenDB Server | |
run: wget -O RavenDB.tar.bz2 "https://hibernatingrhinos.com/downloads/RavenDB%20for%20Linux%20x64/latest?buildType=${{ env.RAVENDB_BUILD_TYPE }}&version=${{ matrix.serverVersion }}" | |
- run: mkdir certs | |
- run: openssl genrsa -traditional -out certs/ca.key 2048 | |
- run: openssl req -new -x509 -key certs/ca.key -out certs/ca.crt -subj "/C=US/ST=Arizona/L=Nevada/O=RavenDB Test CA/OU=RavenDB test CA/CN=localhost/[email protected]" | |
- run: openssl genrsa -out certs/localhost.key 2048 | |
- run: openssl req -new -key certs/localhost.key -out certs/localhost.csr -subj "/C=US/ST=Arizona/L=Nevada/O=RavenDB Test/OU=RavenDB test/CN=localhost/[email protected]" -addext "subjectAltName = DNS:localhost" | |
- run: openssl x509 -req -extensions ext -extfile src/test/cert/test_cert.conf -in certs/localhost.csr -CA certs/ca.crt -CAkey certs/ca.key -CAcreateserial -out certs/localhost.crt | |
- run: cat certs/localhost.key certs/localhost.crt > certs/java.pem | |
- run: openssl pkcs12 -passout pass:"" -export -out certs/server.pfx -inkey certs/localhost.key -in certs/localhost.crt | |
- run: sudo cp certs/ca.crt /usr/local/share/ca-certificates/ca.crt | |
- run: sudo update-ca-certificates | |
- name: Extract RavenDB Server | |
run: tar xjf RavenDB.tar.bz2 | |
- name: Deploy server certificate | |
run: mkdir RavenDB/Server/certs && cp certs/server.pfx RavenDB/Server/certs/ | |
- name: Run Maven Tests | |
run: mvn clean test |