Update Serving API - from backend PR #6716 #1018
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | |
| - 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 |