Skip to content

Commit

Permalink
TC-47 test cypress
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniil Tkachev committed Dec 13, 2024
1 parent c84e682 commit 7737e5e
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/oxid-esales/cypress.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ function run_docker_compose_up() {
}

# Set environment variables (example values; adjust as needed)
export CYPRESS_WORKDIR="/var/www/vendor/oxid-solution-catalysts/telecash-module/tests/e2e"
export CYPRESS_CONFIG="/var/www/vendor/oxid-solution-catalysts/telecash-module/tests/e2e/cypress.config.js"
export CYPRESS_WORKDIR="./source/www/vendor/oxid-solution-catalysts/telecash-module/tests/e2e"
export CYPRESS_CONFIG="./source/vendor/oxid-solution-catalysts/telecash-module/tests/e2e/cypress.config.js"

# Inject the Cypress service and start the container
add_cypress_service
Expand Down
18 changes: 18 additions & 0 deletions .github/workflows/trigger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,21 @@ jobs:
enterprise_github_token: ${{ secrets.enterprise_github_token }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

custom_summary:
if: always()
needs: osc_telecash_php82_mysql_80
runs-on: ubuntu-latest
steps:
- name: Generate a custom summary
run: |
echo "Custom Summary Step: Gathering results..."
chmod 775 ./source/vendor/oxid-solution-catalysts/telecash-module/.github/oxid-esales/cypress.sh
./source/vendor/oxid-solution-catalysts/telecash-module/.github/oxid-esales/cypress.sh > cypress-output.txt
echo "Results summarized successfully!"
- name: Upload Custom Artifacts
if: always()
uses: actions/upload-artifact@v4
with:
name: custom-summary
path: summary-output.txt

0 comments on commit 7737e5e

Please sign in to comment.