@@ -19,36 +19,103 @@ jobs:
1919 steps :
2020 - name : Checkout code
2121 uses : actions/checkout@v4
22+
2223 - name : Read Java Config
2324 shell : bash
2425 run : cat .github/java-config.env >> $GITHUB_ENV
26+
2527 - name : Setup Java
2628 uses : actions/setup-java@v4
2729 with :
2830 java-version : ${{ env.JAVA_VERSION }}
2931 distribution : ${{ env.JAVA_DISTRIBUTION }}
32+
3033 - name : Setup Node.js
3134 uses : actions/setup-node@v4
3235 with :
33- node-version : ${{ matrix.nodejs_version }}
34- - name : Checkout to test artifacts
36+ node-version : ${{ needs.node-versions.outputs.default-version }}
37+
38+ - name : Configure AWS Credentials
39+ uses : aws-actions/configure-aws-credentials@v5
40+ with :
41+ role-to-assume : ${{ secrets.AWS_HAZELCAST_OIDC_GITHUB_ACTIONS_ROLE_ARN }}
42+ aws-region : ' us-east-1'
43+
44+ - name : Get Secrets
45+ uses : aws-actions/aws-secretsmanager-get-secrets@v2
46+ with :
47+ secret-ids : |
48+ HAZELCAST_ENTERPRISE_KEY,CN/HZ_LICENSE_KEY
49+
50+ - name : Checkout to certificates
3551 uses : actions/checkout@v4
3652 with :
37- repository : hazelcast/private-test-artifacts
38- path : certs
39- ref : data
40- token : ${{ secrets.GH_TOKEN }}
53+ repository : hazelcast/private-test-artifacts
54+ path : certs
55+ ref : data
56+ token : ${{ secrets.GH_TOKEN }}
57+
4158 - name : Copy certificates JAR to destination with the appropriate name
4259 run : |
43- cp ${{ github.workspace }}/certs/certs.jar ${{ github.workspace }}/certs.jar
44- unzip -p ${{ github.workspace }}/certs.jar com/hazelcast/nio/ssl/letsencrypt.jks > test/integration/backward_compatible/parallel/ssl/keystore.jks
60+ cp ${{ github.workspace }}/certs/certs.jar ${{ github.workspace }}/certs.jar
61+ unzip -p ${{ github.workspace }}/certs.jar com/hazelcast/nio/ssl/letsencrypt.jks > test/integration/backward_compatible/parallel/ssl/keystore.jks
62+
63+ - name : Create the test jar with certificates (Linux)
64+ if : matrix.os == 'ubuntu-latest'
65+ working-directory : certs
66+ run : |
67+ zip -r -j certs.jar $GITHUB_WORKSPACE/test/integration/backward_compatible/parallel/ssl/*.pem
68+ cp certs.jar ../hazelcast-enterprise-${{ matrix.hz_version }}-tests.jar
69+
70+ - name : Create the test jar with certificates (Windows)
71+ if : matrix.os == 'windows-latest'
72+ working-directory : certs
73+ run : |
74+ $compress = @{
75+ Path = "../test/integration/backward_compatible/parallel/ssl/*.pem"
76+ CompressionLevel = "Fastest"
77+ DestinationPath = "certs.jar"
78+ }
79+ Compress-Archive -Update @compress
80+ cp certs.jar ../hazelcast-enterprise-${{ matrix.hz_version }}-tests.jar
81+
82+ - name : Download RCD (Linux)
83+ if : matrix.os == 'ubuntu-latest'
84+ shell : bash
85+ run : |
86+ wget -q https://client-rcd-download.s3.us-east-2.amazonaws.com/rcd-ubuntu-latest
87+
88+ - name : Download RCD (Windows)
89+ if : matrix.os == 'windows-latest'
90+ run : |
91+ $ProgressPreference = 'SilentlyContinue'
92+ Invoke-WebRequest https://client-rcd-download.s3.us-east-2.amazonaws.com/rcd-windows-latest.exe -OutFile rcd-windows-latest.exe
93+
4594 - name : Install dependencies and compile client
4695 run : |
4796 npm install
4897 npm run compile
49- - name : Validate User Code
50- run : npm run validate-user-code
51- - name : Run tests
98+
99+ - name : Run all tests (Linux)
100+ if : matrix.os == 'ubuntu-latest'
101+ env :
102+ HZ_VERSION : ${{ matrix.hz_version }}
103+ run : |
104+ chmod +x rcd-ubuntu-latest
105+ ./rcd-ubuntu-latest -version $HZ_VERSION -no-simple-server &
106+ # wait for a bit for RCD to download artifacts
107+ sleep 10
108+ npm run coverage
109+
110+ - name : Run all tests (Windows)
111+ if : matrix.os == 'windows-latest'
52112 env :
53- HAZELCAST_ENTERPRISE_KEY : ${{ secrets.HAZELCAST_ENTERPRISE_KEY }}
54- run : npm run test
113+ HZ_VERSION : ${{ matrix.hz_version }}
114+ run : |
115+ Start-Process -FilePath .\rcd-windows-latest -ArgumentList '-version', $Env:HZ_VERSION, '-no-simple-server' -RedirectStandardOutput rcd-stdout.log -RedirectStandardError rcd-stderr.log
116+ # wait for a bit for RCD to download artifacts
117+ sleep 10
118+ echo "RCD Log:"
119+ cat rcd-stdout.log
120+ cat rcd-stderr.log
121+ npm run coverage
0 commit comments