Skip to content

chore(deps-dev): bump @vitest/coverage-v8 from 3.1.1 to 3.1.4 in /libraries/js #26

chore(deps-dev): bump @vitest/coverage-v8 from 3.1.1 to 3.1.4 in /libraries/js

chore(deps-dev): bump @vitest/coverage-v8 from 3.1.1 to 3.1.4 in /libraries/js #26

name: Build and Test Web SDK [JS]
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
build-lib-sdk-web:
strategy:
matrix:
node-version: [20.x, 22.x]
runs-on: ubuntu-latest
container:
image: mcr.microsoft.com/playwright:v1.51.1-noble
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "npm" # Enabling npm caching
cache-dependency-path: |
libraries/sdk-web/package-lock.json
- name: Install dependencies
working-directory: libraries/sdk-web
run: npm ci
- name: Install Playwright Browsers
working-directory: libraries/sdk-web
run: npx playwright install chromium # does not need "--with-deps" because we are using the official image
- name: Visual Test
working-directory: libraries/sdk-web
run: npm test
- name: Build
working-directory: libraries/sdk-web
run: npm run build