Skip to content

Commit

Permalink
Checkpoint.
Browse files Browse the repository at this point in the history
  • Loading branch information
rlubke committed Feb 4, 2025
1 parent bd3d8b7 commit 67461f3
Show file tree
Hide file tree
Showing 5 changed files with 190 additions and 107 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/node.js.yml → .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
fail-fast: false
matrix:
node-version: [18.x, 19.x, 20.x, 21.x, 22.x, 23.x]
coherence-version: [22.06.11, 24.09.2]
coherence-version: [22.06.11, 14.1.2-0-1, 24.09.2]

steps:
- uses: actions/checkout@v4
Expand All @@ -48,7 +48,7 @@ jobs:
- run: COHERENCE_VERSION=${{ matrix.coherence-version }} npm run test-cycle-tls
# clean up
- name: Archive production artifacts
if: always()
if: failure()
uses: actions/upload-artifact@v4
with:
name: save-log-file-${{ matrix.node-version }}-${{ matrix.coherence-version }}
Expand Down
68 changes: 68 additions & 0 deletions .github/workflows/discovery.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
# 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.x, 19.x, 20.x, 21.x, 22.x, 23.x]
coherence-version: [22.06.11, 14.1.2-0-1, 24.09.2]

steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- 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
- run: npm install
- run: npm run compile

- name: Run Coherence Server
shell: bash
run: |
export COHERENCE_VERSION=${{ matrix.coherenceVersion }}
curl -sL https://raw.githubusercontent.com/oracle/coherence-cli/main/scripts/install.sh | bash
cohctl version
cohctl set profile grpc-cluster1 -v "-Dcoherence.grpc.server.port=10000"
cohctl create cluster grpc-cluster1 -P grpc-cluster1 -r 1 -v ${{ matrix.coherenceVersion }} -y -a coherence-grpc-proxy
cohctl set profile grpc-cluster2 -v "-Dcoherence.grpc.server.port=10001"
cohctl create cluster grpc-cluster2 -P grpc-cluster2 -r 1 -H 30001 -v ${{ matrix.coherenceVersion }} -y -a coherence-grpc-proxy
sleep 20
cohctl monitor health -n localhost:7574 -T 40 -w
- name: Run resolver tests
shell: bash
run: |
npm run test-resolver
- name: Archive production artifacts
if: failure()
uses: actions/upload-artifact@v4
with:
name: save-log-file-${{ matrix.node-version }}-${{ matrix.coherence-version }}
path: ~/.cohctl/logs/*.*.log
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"test": "npm run compile && npm exec mocha 'test/**.js' --recursive --exit",
"test-cycle": "bin/test-cycle.sh -c",
"test-cycle-tls": "bin/test-cycle.sh -s",
"test-resolver": "npm run compile && npm exec mocha test/discovery/resolver-tests.js --recursive --exit",
"coh-up": "bin/docker-utils.sh -u",
"coh-down": "bin/docker-utils.sh -d",
"coverage": "nyc mocha 'test/**.js' --exit",
Expand Down
Loading

0 comments on commit 67461f3

Please sign in to comment.