tm-playwright-framework
Version:
Playwright Cucumber TS framework - The easiest way to learn
34 lines (30 loc) • 1.38 kB
YAML
# Template NodeJS build
# This template allows you to validate your NodeJS code.
# The workflow allows running tests and code linting on the default branch.
image: mcr.microsoft.com/playwright:v1.50.1-noble
pipelines:
default:
- parallel:
- step:
name: Build and Test
caches:
- node
script:
- npm ci
- npm install minimist
- npm install dotenv
- npx playwright install chromium
- npx tsc
- npm run copy-defaultHTML
- npm run copy-CucumberJS
- npm run copy-PWConfigTS
- npm run copy-EnvTypes
- cp -r -u -p node_modules/tm-playwright-framework/dist dist/
- apt-get update -y
- ls -al ./app/test-data/
- npm run ccs_cucumber_test -- --ENV=prod --CLIENT=SAMPLE_CLIENT --FEATURES=app/test/features/unitTest --HEADLESS=true --PARALLEL_WORKER=5
- npm run ccs_playwright_test -- --ENV=prod --CLIENT=SAMPLE_CLIENT --TEST_DIR=app/test/playwright/example --HEADLESS=true --PARALLEL_WORKER=1
artifacts:
- cucumber-results/default-report/logs/*.html
- cucumber-results/default-report/*.html
- playwright-test-results'}/report-html/*.html