Skip to content

Implement FML Execution Validation Test Suite with FHIR IG-based TestPlan #58

Implement FML Execution Validation Test Suite with FHIR IG-based TestPlan

Implement FML Execution Validation Test Suite with FHIR IG-based TestPlan #58

Workflow file for this run

name: Build and Test Kotlin/JS Core
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main, develop ]
workflow_call: # Allow this workflow to be called by other workflows
jobs:
test-typescript:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Build TypeScript packages
run: npm run build
- name: Run TypeScript tests
run: npm test
test-kotlin:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup JDK
uses: actions/setup-java@v4
with:
java-version: '11'
distribution: 'temurin'
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: Build Kotlin/JS
run: gradle build
- name: Run Kotlin tests
run: gradle test
- name: Build JS artifacts
run: gradle jsMainClasses
- name: Upload JS artifacts
uses: actions/upload-artifact@v4
with:
name: kotlin-js-build
path: |
build/js/packages/*/
build/dist/js/
integration-test:
runs-on: ubuntu-latest
needs: [test-typescript, test-kotlin]
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
cache: 'npm'
- name: Download Kotlin/JS artifacts
uses: actions/download-artifact@v4
with:
name: kotlin-js-build
path: packages/fmlrunner-kotlin-core/dist/
- name: Install dependencies
run: npm ci
- name: Run integration tests
run: npm run test:integration || echo "Integration tests placeholder"
- name: Test cross-platform compatibility
run: |
echo "Testing Kotlin/JS integration with TypeScript..."
# Placeholder for actual integration tests
node -e "console.log('Kotlin/JS artifacts available:', require('fs').existsSync('packages/fmlrunner-kotlin-core/dist/'))"