-
Notifications
You must be signed in to change notification settings - Fork 99
34 lines (33 loc) · 1.2 KB
/
run-bdd-tests.yml
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
name: Run Jest tests
on: [push]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout latest code
uses: actions/checkout@v3
- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18
- name: Restore/create node_modules cache
uses: actions/cache@v3
with:
path: '**/node_modules'
key: ${{ runner.os }}-${{ hashFiles('yarn.lock') }}
- name: Install repository
run: yarn install --frozen-lockfile
- name: Build BDD covered packages and dependencies
run: |
yarn exec turbo -- run build --filter="./packages/manager/core/*" --concurrency=5
yarn exec turbo -- run build --filter="./packages/manager-react-components" --concurrency=5
yarn exec turbo -- run build --filter="./packages/manager/modules/order" --concurrency=5
# This task is for running the jest tests outside microApps
- name: Run tests Jest
run: yarn test:jest
- name: Run tests Turbo
run: yarn test:turbo
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run e2e tests
run: yarn test:playwright:run