Run jest tests in ci & upload coverage

update playwright
This commit is contained in:
shamoon 2023-05-26 11:32:41 -07:00
parent 06def8c11e
commit 37e928d869
3 changed files with 23 additions and 13 deletions

View File

@ -202,10 +202,20 @@ jobs:
name: Linting checks name: Linting checks
run: cd src-ui && npm run lint run: cd src-ui && npm run lint
- -
name: Run Playwright tests name: Run Jest unit tests
run: cd src-ui && npm run test
-
name: Upload Jest coverage
if: always()
uses: actions/upload-artifact@v3
with:
name: jest-coverage-report
path: src-ui/coverage
-
name: Run Playwright e2e tests
run: cd src-ui && npx playwright test run: cd src-ui && npx playwright test
- -
name: Upload test results name: Upload Playwright test results
if: always() if: always()
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with:

View File

@ -43,7 +43,7 @@
"@angular-eslint/template-parser": "15.2.1", "@angular-eslint/template-parser": "15.2.1",
"@angular/cli": "~15.2.7", "@angular/cli": "~15.2.7",
"@angular/compiler-cli": "~15.2.8", "@angular/compiler-cli": "~15.2.8",
"@playwright/test": "^1.34.3", "@playwright/test": "^1.35.1",
"@types/jest": "^29.5.0", "@types/jest": "^29.5.0",
"@types/node": "^20.2.5", "@types/node": "^20.2.5",
"@typescript-eslint/eslint-plugin": "^5.59.8", "@typescript-eslint/eslint-plugin": "^5.59.8",
@ -4229,19 +4229,19 @@
} }
}, },
"node_modules/@playwright/test": { "node_modules/@playwright/test": {
"version": "1.34.3", "version": "1.35.1",
"resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.34.3.tgz", "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.35.1.tgz",
"integrity": "sha512-zPLef6w9P6T/iT6XDYG3mvGOqOyb6eHaV9XtkunYs0+OzxBtrPAAaHotc0X+PJ00WPPnLfFBTl7mf45Mn8DBmw==", "integrity": "sha512-b5YoFe6J9exsMYg0pQAobNDR85T1nLumUYgUTtKm4d21iX2L7WqKq9dW8NGJ+2vX0etZd+Y7UeuqsxDXm9+5ZA==",
"dev": true, "dev": true,
"dependencies": { "dependencies": {
"@types/node": "*", "@types/node": "*",
"playwright-core": "1.34.3" "playwright-core": "1.35.1"
}, },
"bin": { "bin": {
"playwright": "cli.js" "playwright": "cli.js"
}, },
"engines": { "engines": {
"node": ">=14" "node": ">=16"
}, },
"optionalDependencies": { "optionalDependencies": {
"fsevents": "2.3.2" "fsevents": "2.3.2"
@ -14615,15 +14615,15 @@
} }
}, },
"node_modules/playwright-core": { "node_modules/playwright-core": {
"version": "1.34.3", "version": "1.35.1",
"resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.34.3.tgz", "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.35.1.tgz",
"integrity": "sha512-2pWd6G7OHKemc5x1r1rp8aQcpvDh7goMBZlJv6Co5vCNLVcQJdhxRL09SGaY6HcyHH9aT4tiynZabMofVasBYw==", "integrity": "sha512-pNXb6CQ7OqmGDRspEjlxE49w+4YtR6a3X6mT1hZXeJHWmsEz7SunmvZeiG/+y1yyMZdHnnn73WKYdtV1er0Xyg==",
"dev": true, "dev": true,
"bin": { "bin": {
"playwright-core": "cli.js" "playwright-core": "cli.js"
}, },
"engines": { "engines": {
"node": ">=14" "node": ">=16"
} }
}, },
"node_modules/postcss": { "node_modules/postcss": {

View File

@ -45,7 +45,7 @@
"@angular-eslint/template-parser": "15.2.1", "@angular-eslint/template-parser": "15.2.1",
"@angular/cli": "~15.2.7", "@angular/cli": "~15.2.7",
"@angular/compiler-cli": "~15.2.8", "@angular/compiler-cli": "~15.2.8",
"@playwright/test": "^1.34.3", "@playwright/test": "^1.35.1",
"@types/jest": "^29.5.0", "@types/jest": "^29.5.0",
"@types/node": "^20.2.5", "@types/node": "^20.2.5",
"@typescript-eslint/eslint-plugin": "^5.59.8", "@typescript-eslint/eslint-plugin": "^5.59.8",