From 51ebe45589d157c52b1a358b34d71afd44ad3547 Mon Sep 17 00:00:00 2001 From: Ammar Ansari Date: Mon, 17 Feb 2025 16:45:45 +0500 Subject: [PATCH 1/9] setup package for e2e-js --- .github/actions/build/action.yml | 2 +- .github/actions/install/action.yml | 2 +- .github/workflows/browser-js-production.yml | 6 +-- .github/workflows/unit-tests.yml | 50 ++++++++++----------- 4 files changed, 30 insertions(+), 30 deletions(-) diff --git a/.github/actions/build/action.yml b/.github/actions/build/action.yml index 4a919a6a7..c7dfb748f 100644 --- a/.github/actions/build/action.yml +++ b/.github/actions/build/action.yml @@ -4,7 +4,7 @@ description: Build all the SDKs in the monorepo inputs: NODE_VERSION: required: false - default: 20.x + default: 22.x description: Node version to use runs: diff --git a/.github/actions/install/action.yml b/.github/actions/install/action.yml index 290822537..c0bde46d9 100644 --- a/.github/actions/install/action.yml +++ b/.github/actions/install/action.yml @@ -4,7 +4,7 @@ description: Install dependencies for the monorepo inputs: NODE_VERSION: required: false - default: 20.x + default: 22.x description: Node version to use runs: diff --git a/.github/workflows/browser-js-production.yml b/.github/workflows/browser-js-production.yml index 627caf077..f340e8789 100644 --- a/.github/workflows/browser-js-production.yml +++ b/.github/workflows/browser-js-production.yml @@ -13,11 +13,11 @@ concurrency: jobs: e2e-tests: name: Run E2E tests - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 strategy: fail-fast: false matrix: - node-version: [20.x] + node-version: [22.x] project: [ default, @@ -53,7 +53,7 @@ jobs: report-result: needs: e2e-tests - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 if: success() || failure() steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 912827a3d..895c39969 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -14,10 +14,10 @@ concurrency: jobs: tests: name: Run unit and stack tests - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 strategy: matrix: - node-version: [20.x] + node-version: [22.x] steps: - uses: actions/checkout@v4 - name: Install deps @@ -28,31 +28,31 @@ jobs: uses: ./.github/actions/build with: NODE_VERSION: ${{ matrix.node-version }} - - name: Unit Tests - run: npm test - - name: Stack Tests - run: npm run -w=@sw-internal/stack-tests dev - env: - RELAY_HOST: ${{ secrets.RELAY_HOST }} - RELAY_PROJECT: ${{ secrets.RELAY_PROJECT }} - RELAY_TOKEN: ${{ secrets.RELAY_TOKEN }} - run-browser-js-staging: - name: Browser SDK staging - needs: tests - uses: ./.github/workflows/browser-js-staging.yml - secrets: inherit + # - name: Unit Tests + # run: npm test + # - name: Stack Tests + # run: npm run -w=@sw-internal/stack-tests dev + # env: + # RELAY_HOST: ${{ secrets.RELAY_HOST }} + # RELAY_PROJECT: ${{ secrets.RELAY_PROJECT }} + # RELAY_TOKEN: ${{ secrets.RELAY_TOKEN }} + # run-browser-js-staging: + # name: Browser SDK staging + # needs: tests + # uses: ./.github/workflows/browser-js-staging.yml + # secrets: inherit run-browser-js-production: name: Browser SDK production needs: tests uses: ./.github/workflows/browser-js-production.yml secrets: inherit - run-realtime-api-staging: - name: RealtimeAPI SDK staging - needs: tests - uses: ./.github/workflows/realtime-api-staging.yml - secrets: inherit - run-realtime-api-production: - name: RealtimeAPI SDK production - needs: tests - uses: ./.github/workflows/realtime-api-production.yml - secrets: inherit + # run-realtime-api-staging: + # name: RealtimeAPI SDK staging + # needs: tests + # uses: ./.github/workflows/realtime-api-staging.yml + # secrets: inherit + # run-realtime-api-production: + # name: RealtimeAPI SDK production + # needs: tests + # uses: ./.github/workflows/realtime-api-production.yml + # secrets: inherit From 4221001503e1aea02b1fe3ca7e9b4354d14d7723 Mon Sep 17 00:00:00 2001 From: Ammar Ansari Date: Mon, 17 Feb 2025 16:51:41 +0500 Subject: [PATCH 2/9] use ubuntu-latest --- .github/workflows/browser-js-production.yml | 2 +- .github/workflows/unit-tests.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/browser-js-production.yml b/.github/workflows/browser-js-production.yml index f340e8789..74058766b 100644 --- a/.github/workflows/browser-js-production.yml +++ b/.github/workflows/browser-js-production.yml @@ -53,7 +53,7 @@ jobs: report-result: needs: e2e-tests - runs-on: ubuntu-22.04 + runs-on: ubuntu-latest if: success() || failure() steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 895c39969..73b2457e2 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -14,7 +14,7 @@ concurrency: jobs: tests: name: Run unit and stack tests - runs-on: ubuntu-22.04 + runs-on: ubuntu-latest strategy: matrix: node-version: [22.x] From cc7167a672e7aee377edf6ea609116b66099104b Mon Sep 17 00:00:00 2001 From: Ammar Ansari Date: Mon, 17 Feb 2025 16:54:50 +0500 Subject: [PATCH 3/9] avoid cache --- .github/actions/playwright/action.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/actions/playwright/action.yml b/.github/actions/playwright/action.yml index 4939bbfbf..c34cb5a0a 100644 --- a/.github/actions/playwright/action.yml +++ b/.github/actions/playwright/action.yml @@ -9,14 +9,14 @@ inputs: runs: using: composite steps: - - name: Cache playwright binaries - uses: actions/cache@v4 - id: playwright-cache - with: - path: | - ~/.cache/ms-playwright - key: ${{ runner.os }}-playwright-${{ inputs.PLAYWRIGHT_VERSION }} - - if: steps.playwright-cache.outputs.cache-hit != 'true' - name: Install Playwright + # - name: Cache playwright binaries + # uses: actions/cache@v4 + # id: playwright-cache + # with: + # path: | + # ~/.cache/ms-playwright + # key: ${{ runner.os }}-playwright-${{ inputs.PLAYWRIGHT_VERSION }} + # - if: steps.playwright-cache.outputs.cache-hit != 'true' + - name: Install Playwright shell: bash run: npx playwright install --with-deps chromium From 3bc340f4a2ffbdf0b06e89baf62c9eabc463cef4 Mon Sep 17 00:00:00 2001 From: Ammar Ansari Date: Mon, 17 Feb 2025 16:59:43 +0500 Subject: [PATCH 4/9] no cache with ubuntu latest --- .github/actions/build/action.yml | 16 +++++++------- .github/actions/install/action.yml | 24 ++++++++++----------- .github/workflows/browser-js-production.yml | 2 +- 3 files changed, 21 insertions(+), 21 deletions(-) diff --git a/.github/actions/build/action.yml b/.github/actions/build/action.yml index c7dfb748f..8c3d2bc68 100644 --- a/.github/actions/build/action.yml +++ b/.github/actions/build/action.yml @@ -10,13 +10,13 @@ inputs: runs: using: composite steps: - - name: Cache dist folders - id: cache - uses: actions/cache@v4 - with: - key: ${{ github.ref }}-${{ github.sha }} - path: packages/*/dist - - if: steps.cache.outputs.cache-hit != 'true' - name: Build + # - name: Cache dist folders + # id: cache + # uses: actions/cache@v4 + # with: + # key: ${{ github.ref }}-${{ github.sha }} + # path: packages/*/dist + # - if: steps.cache.outputs.cache-hit != 'true' + - name: Build shell: bash run: npm run build diff --git a/.github/actions/install/action.yml b/.github/actions/install/action.yml index c0bde46d9..fbe9b2259 100644 --- a/.github/actions/install/action.yml +++ b/.github/actions/install/action.yml @@ -15,17 +15,17 @@ runs: with: node-version: ${{ inputs.NODE_VERSION }} cache: npm - - name: Cache node_modules - id: cache_node_modules - uses: actions/cache@v4 - with: - key: ${{ runner.os }}-node-modules-${{ inputs.NODE_VERSION }}-${{ hashFiles('**/package-lock.json') }} - path: | - node_modules - packages/*/node_modules - scripts/*/node_modules - internal/*/node_modules - - if: steps.cache_node_modules.outputs.cache-hit != 'true' - name: Install Dependencies + # - name: Cache node_modules + # id: cache_node_modules + # uses: actions/cache@v4 + # with: + # key: ${{ runner.os }}-node-modules-${{ inputs.NODE_VERSION }}-${{ hashFiles('**/package-lock.json') }} + # path: | + # node_modules + # packages/*/node_modules + # scripts/*/node_modules + # internal/*/node_modules + # - if: steps.cache_node_modules.outputs.cache-hit != 'true' + - name: Install Dependencies shell: bash run: npm ci diff --git a/.github/workflows/browser-js-production.yml b/.github/workflows/browser-js-production.yml index 74058766b..9ab9fa365 100644 --- a/.github/workflows/browser-js-production.yml +++ b/.github/workflows/browser-js-production.yml @@ -13,7 +13,7 @@ concurrency: jobs: e2e-tests: name: Run E2E tests - runs-on: ubuntu-22.04 + runs-on: ubuntu-latest strategy: fail-fast: false matrix: From 5fa1a6ac971424698cc66483cabb2a8a606637c0 Mon Sep 17 00:00:00 2001 From: Ammar Ansari Date: Mon, 17 Feb 2025 17:09:34 +0500 Subject: [PATCH 5/9] use v1.48.2 --- .github/workflows/browser-js-production.yml | 2 +- internal/e2e-js/package.json | 2 +- package-lock.json | 50 ++++++++++++++++++++- 3 files changed, 51 insertions(+), 3 deletions(-) diff --git a/.github/workflows/browser-js-production.yml b/.github/workflows/browser-js-production.yml index 9ab9fa365..b0eea641a 100644 --- a/.github/workflows/browser-js-production.yml +++ b/.github/workflows/browser-js-production.yml @@ -45,7 +45,7 @@ jobs: - name: Install Playwright uses: ./.github/actions/playwright with: - PLAYWRIGHT_VERSION: '1.35.1' # TODO: Read from deps ? + PLAYWRIGHT_VERSION: '1.48.2' # TODO: Read from deps ? - name: Test run: npm run -w=@sw-internal/e2e-js dev -- --project ${{ matrix.project }} env: diff --git a/internal/e2e-js/package.json b/internal/e2e-js/package.json index 1f5fafc6c..db618a881 100644 --- a/internal/e2e-js/package.json +++ b/internal/e2e-js/package.json @@ -13,7 +13,7 @@ "vite": "^5.4.10" }, "devDependencies": { - "@playwright/test": "^1.35.1", + "@playwright/test": "^1.48.2", "playwrigth-ws-inspector": "^1.0.0" } } diff --git a/package-lock.json b/package-lock.json index 6935d82a3..cb3285760 100644 --- a/package-lock.json +++ b/package-lock.json @@ -44,7 +44,7 @@ "vite": "^5.4.10" }, "devDependencies": { - "@playwright/test": "^1.35.1", + "@playwright/test": "^1.48.2", "playwrigth-ws-inspector": "^1.0.0" } }, @@ -63,6 +63,22 @@ "node": ">=12" } }, + "internal/e2e-js/node_modules/@playwright/test": { + "version": "1.50.1", + "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.50.1.tgz", + "integrity": "sha512-Jii3aBg+CEDpgnuDxEp/h7BimHcUTDlpEtce89xEumlJ5ef2hqepZ+PWp1DDpYC/VO9fmWVI1IlEaoI5fK9FXQ==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "playwright": "1.50.1" + }, + "bin": { + "playwright": "cli.js" + }, + "engines": { + "node": ">=18" + } + }, "internal/e2e-js/node_modules/@types/estree": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.6.tgz", @@ -12522,6 +12538,25 @@ "node": ">=8" } }, + "node_modules/playwright": { + "version": "1.50.1", + "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.50.1.tgz", + "integrity": "sha512-G8rwsOQJ63XG6BbKj2w5rHeavFjy5zynBA9zsJMMtBoe/Uf757oG12NXz6e6OirF7RCrTVAKFXbLmn1RbL7Qaw==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "playwright-core": "1.50.1" + }, + "bin": { + "playwright": "cli.js" + }, + "engines": { + "node": ">=18" + }, + "optionalDependencies": { + "fsevents": "2.3.2" + } + }, "node_modules/playwright-core": { "version": "1.35.1", "dev": true, @@ -12533,6 +12568,19 @@ "node": ">=16" } }, + "node_modules/playwright/node_modules/playwright-core": { + "version": "1.50.1", + "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.50.1.tgz", + "integrity": "sha512-ra9fsNWayuYumt+NiM069M6OkcRb1FZSK8bgi66AtpFoWkg2+y0bJSNmkFrWhMbEBbVKC/EruAHH3g0zmtwGmQ==", + "dev": true, + "license": "Apache-2.0", + "bin": { + "playwright-core": "cli.js" + }, + "engines": { + "node": ">=18" + } + }, "node_modules/playwrigth-ws-inspector": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/playwrigth-ws-inspector/-/playwrigth-ws-inspector-1.0.0.tgz", From 7cd9d473d88b21060fb916218c0225abb957cd59 Mon Sep 17 00:00:00 2001 From: Ammar Ansari Date: Mon, 17 Feb 2025 17:14:52 +0500 Subject: [PATCH 6/9] use ubuntu-22 --- .github/workflows/browser-js-production.yml | 4 ++-- internal/e2e-js/package.json | 2 +- package-lock.json | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/browser-js-production.yml b/.github/workflows/browser-js-production.yml index b0eea641a..74058766b 100644 --- a/.github/workflows/browser-js-production.yml +++ b/.github/workflows/browser-js-production.yml @@ -13,7 +13,7 @@ concurrency: jobs: e2e-tests: name: Run E2E tests - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 strategy: fail-fast: false matrix: @@ -45,7 +45,7 @@ jobs: - name: Install Playwright uses: ./.github/actions/playwright with: - PLAYWRIGHT_VERSION: '1.48.2' # TODO: Read from deps ? + PLAYWRIGHT_VERSION: '1.35.1' # TODO: Read from deps ? - name: Test run: npm run -w=@sw-internal/e2e-js dev -- --project ${{ matrix.project }} env: diff --git a/internal/e2e-js/package.json b/internal/e2e-js/package.json index db618a881..1f5fafc6c 100644 --- a/internal/e2e-js/package.json +++ b/internal/e2e-js/package.json @@ -13,7 +13,7 @@ "vite": "^5.4.10" }, "devDependencies": { - "@playwright/test": "^1.48.2", + "@playwright/test": "^1.35.1", "playwrigth-ws-inspector": "^1.0.0" } } diff --git a/package-lock.json b/package-lock.json index cb3285760..cc465ba7e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -44,7 +44,7 @@ "vite": "^5.4.10" }, "devDependencies": { - "@playwright/test": "^1.48.2", + "@playwright/test": "^1.35.1", "playwrigth-ws-inspector": "^1.0.0" } }, From ec081f8973fcde4f0d3a492d66d1e197f1d4e528 Mon Sep 17 00:00:00 2001 From: Ammar Ansari Date: Mon, 17 Feb 2025 17:18:39 +0500 Subject: [PATCH 7/9] remove lock changes: --- package-lock.json | 48 ----------------------------------------------- 1 file changed, 48 deletions(-) diff --git a/package-lock.json b/package-lock.json index cc465ba7e..6935d82a3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -63,22 +63,6 @@ "node": ">=12" } }, - "internal/e2e-js/node_modules/@playwright/test": { - "version": "1.50.1", - "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.50.1.tgz", - "integrity": "sha512-Jii3aBg+CEDpgnuDxEp/h7BimHcUTDlpEtce89xEumlJ5ef2hqepZ+PWp1DDpYC/VO9fmWVI1IlEaoI5fK9FXQ==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "playwright": "1.50.1" - }, - "bin": { - "playwright": "cli.js" - }, - "engines": { - "node": ">=18" - } - }, "internal/e2e-js/node_modules/@types/estree": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.6.tgz", @@ -12538,25 +12522,6 @@ "node": ">=8" } }, - "node_modules/playwright": { - "version": "1.50.1", - "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.50.1.tgz", - "integrity": "sha512-G8rwsOQJ63XG6BbKj2w5rHeavFjy5zynBA9zsJMMtBoe/Uf757oG12NXz6e6OirF7RCrTVAKFXbLmn1RbL7Qaw==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "playwright-core": "1.50.1" - }, - "bin": { - "playwright": "cli.js" - }, - "engines": { - "node": ">=18" - }, - "optionalDependencies": { - "fsevents": "2.3.2" - } - }, "node_modules/playwright-core": { "version": "1.35.1", "dev": true, @@ -12568,19 +12533,6 @@ "node": ">=16" } }, - "node_modules/playwright/node_modules/playwright-core": { - "version": "1.50.1", - "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.50.1.tgz", - "integrity": "sha512-ra9fsNWayuYumt+NiM069M6OkcRb1FZSK8bgi66AtpFoWkg2+y0bJSNmkFrWhMbEBbVKC/EruAHH3g0zmtwGmQ==", - "dev": true, - "license": "Apache-2.0", - "bin": { - "playwright-core": "cli.js" - }, - "engines": { - "node": ">=18" - } - }, "node_modules/playwrigth-ws-inspector": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/playwrigth-ws-inspector/-/playwrigth-ws-inspector-1.0.0.tgz", From 9fdc3f355afb467aa0346b8daf2cde3c6bdcd137 Mon Sep 17 00:00:00 2001 From: Ammar Ansari Date: Mon, 17 Feb 2025 17:48:33 +0500 Subject: [PATCH 8/9] use latest node and ubuntu-22.04 for e2e tests --- .github/actions/build/action.yml | 16 +++---- .github/actions/install/action.yml | 24 +++++----- .github/actions/playwright/action.yml | 18 ++++---- .github/actions/setup-js-app/action.yml | 2 +- .github/actions/setup-node-app/action.yml | 2 +- .github/workflows/browser-js-staging.yml | 4 +- .../realtime-api-production-euswcom.yml | 4 +- .github/workflows/realtime-api-production.yml | 4 +- .github/workflows/realtime-api-staging.yml | 4 +- .github/workflows/release-dev.yml | 2 +- .github/workflows/unit-tests.yml | 46 +++++++++---------- .github/workflows/update-playgrounds.yml | 2 +- 12 files changed, 64 insertions(+), 64 deletions(-) diff --git a/.github/actions/build/action.yml b/.github/actions/build/action.yml index 8c3d2bc68..c7dfb748f 100644 --- a/.github/actions/build/action.yml +++ b/.github/actions/build/action.yml @@ -10,13 +10,13 @@ inputs: runs: using: composite steps: - # - name: Cache dist folders - # id: cache - # uses: actions/cache@v4 - # with: - # key: ${{ github.ref }}-${{ github.sha }} - # path: packages/*/dist - # - if: steps.cache.outputs.cache-hit != 'true' - - name: Build + - name: Cache dist folders + id: cache + uses: actions/cache@v4 + with: + key: ${{ github.ref }}-${{ github.sha }} + path: packages/*/dist + - if: steps.cache.outputs.cache-hit != 'true' + name: Build shell: bash run: npm run build diff --git a/.github/actions/install/action.yml b/.github/actions/install/action.yml index fbe9b2259..c0bde46d9 100644 --- a/.github/actions/install/action.yml +++ b/.github/actions/install/action.yml @@ -15,17 +15,17 @@ runs: with: node-version: ${{ inputs.NODE_VERSION }} cache: npm - # - name: Cache node_modules - # id: cache_node_modules - # uses: actions/cache@v4 - # with: - # key: ${{ runner.os }}-node-modules-${{ inputs.NODE_VERSION }}-${{ hashFiles('**/package-lock.json') }} - # path: | - # node_modules - # packages/*/node_modules - # scripts/*/node_modules - # internal/*/node_modules - # - if: steps.cache_node_modules.outputs.cache-hit != 'true' - - name: Install Dependencies + - name: Cache node_modules + id: cache_node_modules + uses: actions/cache@v4 + with: + key: ${{ runner.os }}-node-modules-${{ inputs.NODE_VERSION }}-${{ hashFiles('**/package-lock.json') }} + path: | + node_modules + packages/*/node_modules + scripts/*/node_modules + internal/*/node_modules + - if: steps.cache_node_modules.outputs.cache-hit != 'true' + name: Install Dependencies shell: bash run: npm ci diff --git a/.github/actions/playwright/action.yml b/.github/actions/playwright/action.yml index c34cb5a0a..4939bbfbf 100644 --- a/.github/actions/playwright/action.yml +++ b/.github/actions/playwright/action.yml @@ -9,14 +9,14 @@ inputs: runs: using: composite steps: - # - name: Cache playwright binaries - # uses: actions/cache@v4 - # id: playwright-cache - # with: - # path: | - # ~/.cache/ms-playwright - # key: ${{ runner.os }}-playwright-${{ inputs.PLAYWRIGHT_VERSION }} - # - if: steps.playwright-cache.outputs.cache-hit != 'true' - - name: Install Playwright + - name: Cache playwright binaries + uses: actions/cache@v4 + id: playwright-cache + with: + path: | + ~/.cache/ms-playwright + key: ${{ runner.os }}-playwright-${{ inputs.PLAYWRIGHT_VERSION }} + - if: steps.playwright-cache.outputs.cache-hit != 'true' + name: Install Playwright shell: bash run: npx playwright install --with-deps chromium diff --git a/.github/actions/setup-js-app/action.yml b/.github/actions/setup-js-app/action.yml index 9d9c2e266..2075d909a 100644 --- a/.github/actions/setup-js-app/action.yml +++ b/.github/actions/setup-js-app/action.yml @@ -4,7 +4,7 @@ description: Setup app, install JS dependencies and build inputs: NODE_VERSION: required: false - default: "20.x" + default: "22.x" description: "Default node version" runs: diff --git a/.github/actions/setup-node-app/action.yml b/.github/actions/setup-node-app/action.yml index a3adfcaaa..c36c2c23e 100644 --- a/.github/actions/setup-node-app/action.yml +++ b/.github/actions/setup-node-app/action.yml @@ -4,7 +4,7 @@ description: Setup app, install node dependencies and build inputs: NODE_VERSION: required: false - default: "20.x" + default: "22.x" description: "Default node version" runs: diff --git a/.github/workflows/browser-js-staging.yml b/.github/workflows/browser-js-staging.yml index 1143c58c6..a2d64ff15 100644 --- a/.github/workflows/browser-js-staging.yml +++ b/.github/workflows/browser-js-staging.yml @@ -13,11 +13,11 @@ concurrency: jobs: e2e-tests: name: Run E2E tests - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 strategy: fail-fast: false matrix: - node-version: [20.x] + node-version: [22.x] project: [ default, # streaming, diff --git a/.github/workflows/realtime-api-production-euswcom.yml b/.github/workflows/realtime-api-production-euswcom.yml index 88253d4bf..ff8c9f5db 100644 --- a/.github/workflows/realtime-api-production-euswcom.yml +++ b/.github/workflows/realtime-api-production-euswcom.yml @@ -13,10 +13,10 @@ concurrency: jobs: e2e-tests: name: Run E2E tests - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 strategy: matrix: - node-version: [20.x] + node-version: [22.x] steps: - uses: actions/checkout@v4 - name: Install deps diff --git a/.github/workflows/realtime-api-production.yml b/.github/workflows/realtime-api-production.yml index 3e689d95a..370f45c99 100644 --- a/.github/workflows/realtime-api-production.yml +++ b/.github/workflows/realtime-api-production.yml @@ -13,11 +13,11 @@ concurrency: jobs: e2e-tests: name: Run E2E tests - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 strategy: fail-fast: false # Continue other jobs if one fails matrix: - node-version: [20.x] + node-version: [22.x] test_command: ['dev:rtonly', 'dev:playwright'] steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/realtime-api-staging.yml b/.github/workflows/realtime-api-staging.yml index 2a532f9e3..905923202 100644 --- a/.github/workflows/realtime-api-staging.yml +++ b/.github/workflows/realtime-api-staging.yml @@ -13,11 +13,11 @@ concurrency: jobs: e2e-tests: name: Run E2E tests - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 strategy: fail-fast: false # Continue other jobs if one fails matrix: - node-version: [20.x] + node-version: [22.x] test_command: ['dev:rtonly'] steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/release-dev.yml b/.github/workflows/release-dev.yml index 2459072ff..44bf8a344 100644 --- a/.github/workflows/release-dev.yml +++ b/.github/workflows/release-dev.yml @@ -17,7 +17,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node-version: [20.x] + node-version: [22.x] steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 73b2457e2..b8009f0aa 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -28,31 +28,31 @@ jobs: uses: ./.github/actions/build with: NODE_VERSION: ${{ matrix.node-version }} - # - name: Unit Tests - # run: npm test - # - name: Stack Tests - # run: npm run -w=@sw-internal/stack-tests dev - # env: - # RELAY_HOST: ${{ secrets.RELAY_HOST }} - # RELAY_PROJECT: ${{ secrets.RELAY_PROJECT }} - # RELAY_TOKEN: ${{ secrets.RELAY_TOKEN }} - # run-browser-js-staging: - # name: Browser SDK staging - # needs: tests - # uses: ./.github/workflows/browser-js-staging.yml - # secrets: inherit + - name: Unit Tests + run: npm test + - name: Stack Tests + run: npm run -w=@sw-internal/stack-tests dev + env: + RELAY_HOST: ${{ secrets.RELAY_HOST }} + RELAY_PROJECT: ${{ secrets.RELAY_PROJECT }} + RELAY_TOKEN: ${{ secrets.RELAY_TOKEN }} + run-browser-js-staging: + name: Browser SDK staging + needs: tests + uses: ./.github/workflows/browser-js-staging.yml + secrets: inherit run-browser-js-production: name: Browser SDK production needs: tests uses: ./.github/workflows/browser-js-production.yml secrets: inherit - # run-realtime-api-staging: - # name: RealtimeAPI SDK staging - # needs: tests - # uses: ./.github/workflows/realtime-api-staging.yml - # secrets: inherit - # run-realtime-api-production: - # name: RealtimeAPI SDK production - # needs: tests - # uses: ./.github/workflows/realtime-api-production.yml - # secrets: inherit + run-realtime-api-staging: + name: RealtimeAPI SDK staging + needs: tests + uses: ./.github/workflows/realtime-api-staging.yml + secrets: inherit + run-realtime-api-production: + name: RealtimeAPI SDK production + needs: tests + uses: ./.github/workflows/realtime-api-production.yml + secrets: inherit diff --git a/.github/workflows/update-playgrounds.yml b/.github/workflows/update-playgrounds.yml index 77afc7be0..4bef32865 100644 --- a/.github/workflows/update-playgrounds.yml +++ b/.github/workflows/update-playgrounds.yml @@ -18,7 +18,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: - node-version: 20.x + node-version: 22.x - name: Build static assets for each branch run: | ./prepare_public_folder.sh From f2e9fc517558dcb252da3adba17e5576fda3de23 Mon Sep 17 00:00:00 2001 From: Ammar Ansari Date: Mon, 17 Feb 2025 17:49:07 +0500 Subject: [PATCH 9/9] update 22 to 20 --- .github/actions/build/action.yml | 2 +- .github/actions/install/action.yml | 2 +- .github/actions/setup-js-app/action.yml | 2 +- .github/actions/setup-node-app/action.yml | 2 +- .github/workflows/browser-js-production.yml | 2 +- .github/workflows/browser-js-staging.yml | 2 +- .github/workflows/realtime-api-production-euswcom.yml | 2 +- .github/workflows/realtime-api-production.yml | 2 +- .github/workflows/realtime-api-staging.yml | 2 +- .github/workflows/release-dev.yml | 2 +- .github/workflows/unit-tests.yml | 2 +- .github/workflows/update-playgrounds.yml | 2 +- 12 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/actions/build/action.yml b/.github/actions/build/action.yml index c7dfb748f..4a919a6a7 100644 --- a/.github/actions/build/action.yml +++ b/.github/actions/build/action.yml @@ -4,7 +4,7 @@ description: Build all the SDKs in the monorepo inputs: NODE_VERSION: required: false - default: 22.x + default: 20.x description: Node version to use runs: diff --git a/.github/actions/install/action.yml b/.github/actions/install/action.yml index c0bde46d9..290822537 100644 --- a/.github/actions/install/action.yml +++ b/.github/actions/install/action.yml @@ -4,7 +4,7 @@ description: Install dependencies for the monorepo inputs: NODE_VERSION: required: false - default: 22.x + default: 20.x description: Node version to use runs: diff --git a/.github/actions/setup-js-app/action.yml b/.github/actions/setup-js-app/action.yml index 2075d909a..9d9c2e266 100644 --- a/.github/actions/setup-js-app/action.yml +++ b/.github/actions/setup-js-app/action.yml @@ -4,7 +4,7 @@ description: Setup app, install JS dependencies and build inputs: NODE_VERSION: required: false - default: "22.x" + default: "20.x" description: "Default node version" runs: diff --git a/.github/actions/setup-node-app/action.yml b/.github/actions/setup-node-app/action.yml index c36c2c23e..a3adfcaaa 100644 --- a/.github/actions/setup-node-app/action.yml +++ b/.github/actions/setup-node-app/action.yml @@ -4,7 +4,7 @@ description: Setup app, install node dependencies and build inputs: NODE_VERSION: required: false - default: "22.x" + default: "20.x" description: "Default node version" runs: diff --git a/.github/workflows/browser-js-production.yml b/.github/workflows/browser-js-production.yml index 74058766b..08e52a9c3 100644 --- a/.github/workflows/browser-js-production.yml +++ b/.github/workflows/browser-js-production.yml @@ -17,7 +17,7 @@ jobs: strategy: fail-fast: false matrix: - node-version: [22.x] + node-version: [20.x] project: [ default, diff --git a/.github/workflows/browser-js-staging.yml b/.github/workflows/browser-js-staging.yml index a2d64ff15..2db733302 100644 --- a/.github/workflows/browser-js-staging.yml +++ b/.github/workflows/browser-js-staging.yml @@ -17,7 +17,7 @@ jobs: strategy: fail-fast: false matrix: - node-version: [22.x] + node-version: [20.x] project: [ default, # streaming, diff --git a/.github/workflows/realtime-api-production-euswcom.yml b/.github/workflows/realtime-api-production-euswcom.yml index ff8c9f5db..0859f1b2d 100644 --- a/.github/workflows/realtime-api-production-euswcom.yml +++ b/.github/workflows/realtime-api-production-euswcom.yml @@ -16,7 +16,7 @@ jobs: runs-on: ubuntu-22.04 strategy: matrix: - node-version: [22.x] + node-version: [20.x] steps: - uses: actions/checkout@v4 - name: Install deps diff --git a/.github/workflows/realtime-api-production.yml b/.github/workflows/realtime-api-production.yml index 370f45c99..a7df22df5 100644 --- a/.github/workflows/realtime-api-production.yml +++ b/.github/workflows/realtime-api-production.yml @@ -17,7 +17,7 @@ jobs: strategy: fail-fast: false # Continue other jobs if one fails matrix: - node-version: [22.x] + node-version: [20.x] test_command: ['dev:rtonly', 'dev:playwright'] steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/realtime-api-staging.yml b/.github/workflows/realtime-api-staging.yml index 905923202..97c64cea6 100644 --- a/.github/workflows/realtime-api-staging.yml +++ b/.github/workflows/realtime-api-staging.yml @@ -17,7 +17,7 @@ jobs: strategy: fail-fast: false # Continue other jobs if one fails matrix: - node-version: [22.x] + node-version: [20.x] test_command: ['dev:rtonly'] steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/release-dev.yml b/.github/workflows/release-dev.yml index 44bf8a344..2459072ff 100644 --- a/.github/workflows/release-dev.yml +++ b/.github/workflows/release-dev.yml @@ -17,7 +17,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node-version: [22.x] + node-version: [20.x] steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index b8009f0aa..912827a3d 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -17,7 +17,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node-version: [22.x] + node-version: [20.x] steps: - uses: actions/checkout@v4 - name: Install deps diff --git a/.github/workflows/update-playgrounds.yml b/.github/workflows/update-playgrounds.yml index 4bef32865..77afc7be0 100644 --- a/.github/workflows/update-playgrounds.yml +++ b/.github/workflows/update-playgrounds.yml @@ -18,7 +18,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: - node-version: 22.x + node-version: 20.x - name: Build static assets for each branch run: | ./prepare_public_folder.sh