Playwright Tests - Electron #21
This file contains hidden or 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: Playwright Tests - Electron | |
| on: | |
| push: | |
| schedule: | |
| - cron: '21 21 * * *' | |
| permissions: {} | |
| jobs: | |
| test: | |
| timeout-minutes: 30 | |
| runs-on: ubuntu-latest | |
| env: | |
| IVY_JAVA_HOME: $JAVA_HOME | |
| CI: true | |
| RUN_STABLE_VERSION: true | |
| JAVA_OPTS_IVY_SYSTEM: '-Ddev.mode=true -Divy.engine.testheadless=true' | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: 10 | |
| run_install: false | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24 | |
| - name: Setup Java | |
| uses: actions/setup-java@v5 | |
| with: | |
| java-version: 21 | |
| distribution: 'temurin' | |
| - name: Install dependencies | |
| run: | | |
| pnpm run update:axonivy:next | |
| pnpm install --no-frozen-lockfile | |
| pnpm run build:production | |
| pnpm run engine:download https://dev.axonivy.com/permalink/dev/axonivy-engine.zip | |
| rm -r AxonIvyEngine/system/demo-applications | |
| pnpm run test:playwright:download:vscode | |
| nohup bash -c 'AxonIvyEngine/bin/AxonIvyEngine &'> ivy-engine-console.out | |
| - name: Run Playwright tests | |
| run: xvfb-run pnpm run test:playwright | |
| - name: Upload test results | |
| uses: actions/upload-artifact@v5 | |
| if: ${{ !cancelled() }} | |
| with: | |
| name: test-results | |
| path: | | |
| playwright/test-results | |
| retention-days: 10 | |
| if-no-files-found: ignore |