feat(generator): update e2e test script #23907
Workflow file for this run
This file contains 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: 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/*" | |
yarn exec turbo -- run build --filter="./packages/manager/manager-components/*" | |
yarn exec turbo -- run build --filter="./packages/manager/modules/order" | |
yarn workspace @ovh-ux/manager-container-app start | |
- name: Run tests | |
run: yarn test:jest | |
- name: Install Playwright Browsers | |
run: npx playwright install --with-deps | |
- name: Run e2e tests | |
run: yarn test:playwright:run |