Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.

Commit 98d58c6

Browse files
authored
Merge pull request #13 from SimonGolms/feature/improvements
feat: migrate to ionic v7
2 parents 2204b75 + 52c45cc commit 98d58c6

File tree

5 files changed

+6055
-5118
lines changed

5 files changed

+6055
-5118
lines changed

Jenkinsfile

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ odsComponentPipeline(
3333
// The playwright container is based on the Ubuntu-20.04 (focal) image and comes with the latest Node.js v18,
3434
// as well as all additionally installed dependencies and browser instances.
3535
// see: https://github.com/microsoft/playwright/blob/main/utils/docker/Dockerfile.focal
36-
image: "mcr.microsoft.com/playwright:v1.31.2-focal",
36+
image: "mcr.microsoft.com/playwright:v1.32.3-focal",
3737
name: 'playwright',
3838
// HINT: Before you increase the resources, make sure that the quotas provide the appropriate resources.
3939
// resourceLimitCpu: '1',
@@ -251,19 +251,25 @@ def stageAnalyzeCode(def context) {
251251
}
252252

253253
def stageTest(def context) {
254-
container('playwright') {
255-
stage('Test Components') {
256-
withEnv([
257-
'VITE_AZURE_ACTIVE_DIRECTORY_CLIENT_ID=11111111-2222-3333-4444-555555555dev',
258-
// IMPORTANT: A valid Azure AD Tenant ID for testing purposes is required.
259-
'VITE_AZURE_ACTIVE_DIRECTORY_TENANT_ID=common',
260-
]) {
261-
sh(
262-
label: 'Test React Components',
263-
script: 'npm run test',
264-
)
254+
try {
255+
container('playwright') {
256+
stage('Test Components') {
257+
withEnv([
258+
'VITE_AZURE_ACTIVE_DIRECTORY_CLIENT_ID=11111111-2222-3333-4444-555555555dev',
259+
// IMPORTANT: A valid Azure AD Tenant ID for testing purposes is required.
260+
'VITE_AZURE_ACTIVE_DIRECTORY_TENANT_ID=common',
261+
]) {
262+
sh(
263+
label: 'Test React Components',
264+
script: 'npm run test',
265+
)
266+
}
265267
}
266268
}
269+
} catch (Exception exception) {
270+
zip zipFile: "${context.jobName}-${context.tagversion}-playwright-report.zip", archive: true, glob: 'playwright-report/**,test-results/**'
271+
echo "\033[31mERROR: The test runs have failed.\033[0m\n\nFor a detailed analysis, download and extract the artifact and view it with: \033[34mnpx --yes @playwright/test show-report\033[0m"
272+
throw exception
267273
}
268274
}
269275

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
[![License: Apache-2.0](https://img.shields.io/github/license/simongolms/ods-quickstarter-fe-ionic-react-vite-playwright?style=for-the-badge)](https://github.com/simongolms/ods-quickstarter-fe-ionic-react-vite-playwright/blob/master/LICENSE)
77
[![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-green.svg?style=for-the-badge)](https://github.com/simongolms/ods-quickstarter-fe-ionic-react-vite-playwright/graphs/commit-activity)
88
[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-green.svg?style=for-the-badge)](https://conventionalcommits.org)
9-
![Prerequisite Npm](https://img.shields.io/badge/npm-%3E%3D8.5.5-blue.svg?style=for-the-badge)
10-
![Prerequisite Node](https://img.shields.io/badge/node-%3E%3D16.15-blue.svg?style=for-the-badge)
9+
![Prerequisite Npm](https://img.shields.io/badge/npm-%3E%3D9-blue.svg?style=for-the-badge)
10+
![Prerequisite Node](https://img.shields.io/badge/node-%3E%3D18-blue.svg?style=for-the-badge)
1111

1212
## Features ✨
1313

0 commit comments

Comments
 (0)