fix paths in reporting job

This commit is contained in:
mahula 2025-10-04 10:54:33 +02:00
parent c96d631b46
commit 1ecd8fbc2f
4 changed files with 3 additions and 47 deletions

View File

@ -144,7 +144,7 @@ jobs:
with:
name: cypress-test-results-${{ github.run_id }}
path: |
cypress/cypress/results/
cypress/results/
cypress/screenshots/
cypress/videos/
retention-days: 7
@ -174,39 +174,7 @@ jobs:
uses: actions/download-artifact@v4
with:
name: cypress-test-results-${{ github.run_id }}
path: ./downloaded-reports
- name: Debug downloaded artifacts
run: |
echo "=== Downloaded artifact structure ==="
find downloaded-reports/ -type f 2>/dev/null || echo "No files found"
echo ""
echo "=== Looking for JSON files ==="
find downloaded-reports/ -name "*.json" 2>/dev/null || echo "No JSON files found"
- name: Copy reports to expected location
run: |
# Create the target directory structure in cypress directory
mkdir -p cypress/results
# Copy all files from downloaded artifacts, preserving structure
if [ -d "downloaded-reports" ]; then
# Find and copy all JSON files regardless of their path in the artifact
find downloaded-reports/ -name "*.json" -exec cp {} cypress/results/ \;
# Copy screenshots if they exist
if [ -d "downloaded-reports/screenshots" ]; then
cp -r downloaded-reports/screenshots cypress/
fi
# Copy videos if they exist
if [ -d "downloaded-reports/videos" ]; then
cp -r downloaded-reports/videos cypress/
fi
echo "=== Files copied to cypress/results/ ==="
ls -la cypress/results/ || echo "No files in cypress/results/"
fi
path: ./cypress
- name: Merge test reports
run: |

View File

@ -18,7 +18,7 @@ export default defineConfig({
reporterOptions: {
useInlineDiffs: true,
embeddedScreenshots: true,
reportDir: 'cypress/results',
reportDir: 'results',
reportFilename: '[name].html',
overwrite: false,
html: true,

View File

@ -1,11 +1,5 @@
/// <reference types="cypress" />
Cypress.on('uncaught:exception', (err, _runnable) => {
// eslint-disable-next-line no-console
console.log('Uncaught exception:', err.message)
return false
})
describe('Utopia Map Login', () => {
const testData = {
validUser: {

View File

@ -1,11 +1,5 @@
/// <reference types="cypress" />
Cypress.on('uncaught:exception', (err, _runnable) => {
// eslint-disable-next-line no-console
console.log('Uncaught exception:', err.message)
return false
})
describe('Utopia Map Login Form Elements', () => {
// TODO: set this data different
const _testData = {