Skip to content

feat: add unified test suite CI job #1

feat: add unified test suite CI job

feat: add unified test suite CI job #1

name: Unified Test Suite
on:
pull_request:
push:
branches:
- main
jobs:
check-rest:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Java 17
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
- name: Set up Node.js 18
uses: actions/setup-node@v4
with:
node-version: '18'
- name: Build with Gradle
working-directory: adapter
run: |
./gradlew build
JAR_PATH=$(find $(pwd) -name '*standalone.jar' | head -n 1)
echo "JAR_PATH=$JAR_PATH" >> $GITHUB_ENV
- name: Install uts-pubsub globally
run: npm install -g @ably-labs/uts-pubsub
- name: Run uts-pubsub with ADAPTER_EXECUTABLE
env:
ADAPTER_EXECUTABLE: java -jar ${{ env.JAR_PATH }}
run: uts-pubsub