Runs nightly tests on master #881
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: Runs nightly tests on master | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 2 * * *' | |
jobs: | |
run-tests: | |
runs-on: ${{ matrix.os }} | |
name: Run tests of master on ${{ matrix.os }} with Node ${{ matrix.nodejs_version }} | |
strategy: | |
matrix: | |
os: [ ubuntu-latest, windows-latest ] | |
nodejs_version: [ 10, 18 ] | |
fail-fast: false | |
steps: | |
- name: Setup Java | |
uses: actions/setup-java@v2 | |
with: | |
java-version: 17 | |
distribution: temurin | |
- name: Setup Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ matrix.nodejs_version }} | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Checkout to test artifacts | |
uses: actions/checkout@v2 | |
with: | |
repository: hazelcast/private-test-artifacts | |
path: certs | |
ref: data | |
token: ${{ secrets.GH_TOKEN }} | |
- name: Copy certificates JAR to destination with the appropriate name | |
run: | | |
cp ${{ github.workspace }}/certs/certs.jar ${{ github.workspace }}/certs.jar | |
- name: Install dependencies and compile client | |
run: | | |
npm install | |
npm run compile | |
- name: Validate User Code | |
run: npm run validate-user-code | |
- name: Run tests | |
env: | |
HAZELCAST_ENTERPRISE_KEY: ${{ secrets.HAZELCAST_ENTERPRISE_KEY }} | |
run: npm run test |