APP-675 New params for report API #2397
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: Regression tests | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| inputs: | |
| spec: | |
| description: "Spec to run" | |
| required: false | |
| type: string | |
| default: "cypress/**/*.feature" | |
| jobs: | |
| cypress-run: | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Run containers | |
| working-directory: ./cdc-sandbox | |
| run: ./build_all.sh | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 22.x | |
| # Check graphql types are up to date (definition and usage) | |
| - name: Check Graphql generated types are still correct | |
| working-directory: apps/modernization-ui | |
| run: npm ci && npm run generate && git diff --exit-code && npm run lint | |
| # Install npm dependencies, cache them, run tests | |
| - name: Cypress run | |
| uses: cypress-io/github-action@v7 | |
| with: | |
| working-directory: testing/regression/ | |
| spec: ${{ inputs.spec }} | |
| env: | |
| CYPRESS_BASE_URL: 'http://localhost:8000/' | |
| CYPRESS_LOGIN_USERNAME: 'superuser' | |
| CYPRESS_LOGIN_PASSWORD: '' | |
| # Create cypress html report | |
| - name: Build report | |
| if: ${{ !cancelled() }} | |
| working-directory: testing/regression/ | |
| run: npm run githubReport | |
| # Zip up report | |
| - name: Zip report | |
| if: ${{ !cancelled() }} | |
| working-directory: testing/regression/ | |
| run: zip -r cypress-report.zip reports/cucumber-report/* | |
| # Upload artifact | |
| - uses: actions/upload-artifact@v7 | |
| if: ${{ !cancelled() }} | |
| with: | |
| name: cypress-report | |
| path: testing/regression/cypress-report.zip |