Skip to content

chore(deps): clear 195 of 236 dependency advisories (0 critical left) #1058

chore(deps): clear 195 of 236 dependency advisories (0 critical left)

chore(deps): clear 195 of 236 dependency advisories (0 critical left) #1058

Workflow file for this run

name: Running QA automated checks agains the PR before merging it
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
#push:
# branches: [ main]
pull_request:
branches: [main, main-convert]
types: [opened, synchronize, reopened, ready_for_review]
jobs:
# This workflow contains a single job called "build"
pass-qa:
if: github.event.pull_request.draft == false
# The type of runner that the job will run on
runs-on: ubuntu-latest
strategy:
matrix:
node: [22]
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- name: Setup Yarn
run: |
corepack enable
corepack prepare yarn@stable --activate
- name: Install dependencies
run: yarn install --immutable
- name: Install Playwright browsers
run: |
cd packages/js-sdk
yarn playwright install --with-deps chromium
- name: Runs the SDK QA checks
env:
CONVERT_STAGING_SDK_KEY: ${{ secrets.CONVERT_STAGING_SDK_KEY }}
CONVERT_STAGING_SDK_KEY2: ${{ secrets.CONVERT_STAGING_SDK_KEY2 }}
CONVERT_STAGING_SDK_KEY2_SECRET: ${{ secrets.CONVERT_STAGING_SDK_KEY2_SECRET }}
run: |
cd packages/js-sdk
yarn lint
yarn build
yarn test:mocha
yarn test:browser