Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ module.exports = {
'test/helper/test-setup.ts',
'__mocks__',
'coverage/',
'unified-test-suite',
],
settings: {
jsdoc: {
Expand Down
33 changes: 33 additions & 0 deletions .github/workflows/unified-test-suite.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Unified Test Suite

on:
pull_request:
push:
branches:
- main

jobs:
unified-test-suite:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Node.js 20
uses: actions/setup-node@v4
with:
node-version: 20

- run: npm ci

- name: Prepare adapter
working-directory: unified-test-suite/adapter
run: npm ci

- name: Install uts-chat globally
run: npm install -g @ably-labs/uts-chat

- name: Run uts-chat with ADAPTER_EXECUTABLE
env:
ADAPTER_EXECUTABLE: npm run uts:adapter
run: uts-chat
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@
"demo:reload": "npm run build && cd demo && npm i file:../",
"docs": "typedoc",
"modulereport": "tsc --noEmit --esModuleInterop scripts/moduleReport.ts && esr scripts/moduleReport.ts",
"cspell": "cspell '{src,test}/**' './*.md'"
"cspell": "cspell '{src,test}/**' './*.md'",
"uts:adapter": "cd unified-test-suite/adapter && npm run start"
},
"files": [
"dist/**",
Expand Down
Loading