Manual Tests Execution #482
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: Manual Tests Execution | |
| on: | |
| workflow_dispatch: | |
| #[push] | |
| jobs: | |
| build: | |
| runs-on: macos-latest | |
| steps: | |
| - name: Checkout main repository | |
| uses: actions/checkout@v4 | |
| with: | |
| ref: milestone/2025.Q3 | |
| - name: Permission to file .sh | |
| run: | | |
| #!/bin/bash | |
| sudo chmod +x local-execution.sh | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: 17 | |
| distribution: 'oracle' | |
| - name: Set up Node JS 18.16.1 | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '18.16.1' | |
| - name: Clean old reports | |
| run: | | |
| mvn clean | |
| rm -rf target/site | |
| - name: Clean Maven cache | |
| run: mvn dependency:purge-local-repository -DreResolve=false | |
| - name: Run Ui Tests | |
| run: | | |
| #!/bin/bash | |
| mvn clean verify -Dcucumber.filter.tags="@Q3_2025" "$@" | |
| rm -rf target/site/serenity | |
| mvn serenity:aggregate -Dtags=Q3_2025 | |
| echo "Modifying JSON files to mark tests as manual..." | |
| find target/site/reports/EUDI_Wallet_Version_2025.02.22-Demo -name "*.json" | grep -v "nivo-slider\|bootstrap-icons" | while read file; do | |
| if grep -q "\"manual\":" "$file" 2>/dev/null; then | |
| sed -i '' 's/"manual":\s*false/"manual": true/g' "$file" 2>/dev/null || sed -i 's/"manual":\s*false/"manual": true/g' "$file" | |
| sed -i '' 's/"source":\s*"CUCUMBER"/"source": "MANUAL"/g' "$file" 2>/dev/null || sed -i 's/"source":\s*"CUCUMBER"/"source": "MANUAL"/g' "$file" | |
| fi | |
| done | |
| - name: Produce report | |
| run: mvn serenity:aggregate -Dtags="Q3_2025" | |
| - name: Inject Custom CSS into Serenity Report | |
| if: always() | |
| run: | | |
| cp src/test/resources/custom-style.css target/site/reports/EUDI_Wallet_Version_2025.10.31-Demo/css/core.css | |
| - name: Upload report | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: report | |
| path: target/site | |