Node.js CI #1409
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
# Copyright 2020, 2023, Oracle Corporation and/or its affiliates. All rights reserved. | |
# Licensed under the Universal Permissive License v 1.0 as shown at | |
# https://oss.oracle.com/licenses/upl. | |
# --------------------------------------------------------------------------- | |
# Coherence JavaScript Client GitHub Actions CI build. | |
# --------------------------------------------------------------------------- | |
name: Node.js CI | |
on: | |
schedule: | |
- cron: "0 5 * * *" | |
push: | |
branches-ignore: | |
- ghpages | |
pull_request: | |
types: | |
- opened | |
branches: | |
- 'main' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
node-version: [18.15.x, 19.x] | |
coherence-version: [22.06.10, 24.09] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
# install protoc | |
- run: curl -LO "https://github.com/protocolbuffers/protobuf/releases/download/v22.2/protoc-22.2-linux-x86_64.zip" | |
- run: unzip protoc-22.2-linux-x86_64.zip -d /tmp/grpc | |
- run: echo "/tmp/grpc/bin" >> $GITHUB_PATH | |
# install project deps | |
- run: npm install | |
# run tests | |
- run: COHERENCE_VERSION=${{ matrix.coherence-version }} npm run test-cycle | |
# run tests using TLS | |
- run: COHERENCE_VERSION=${{ matrix.coherence-version }} npm run test-cycle-tls | |
# clean up | |
- name: Archive production artifacts | |
if: always() | |
uses: actions/upload-artifact@v3 | |
with: | |
name: save-log-file | |
path: logs-*.txt |