-
Notifications
You must be signed in to change notification settings - Fork 3
55 lines (48 loc) · 1.59 KB
/
Copy pathqa.yml
File metadata and controls
55 lines (48 loc) · 1.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
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