TC-47 test cypress #140
This file contains 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: Auto trigger on push or pull requests | |
# Matrix workflow using re-usable github actions | |
on: | |
pull_request: {} | |
push: | |
branches: | |
- 'b-7.1.x*' | |
jobs: | |
osc_telecash_php82_mysql_80: | |
uses: oxid-eSales/github-actions/.github/workflows/universal_workflow_light.yaml@v4 | |
with: | |
testplan: '~/defaults/7.1.x.yaml,~/defaults/php8.1_mysql8.0_only.yaml,~/telecash_module.yaml' | |
runs_on: '"ubuntu-latest"' | |
defaults: 'v4' | |
plan_folder: '.github/oxid-esales' | |
secrets: | |
DOCKER_HUB_USER: ${{ secrets.DOCKER_HUB_USER }} | |
DOCKER_HUB_TOKEN: ${{ secrets.DOCKER_HUB_TOKEN }} | |
CACHE_ENDPOINT: ${{ secrets.CACHE_ENDPOINT }} | |
CACHE_ACCESS_KEY: ${{ secrets.CACHE_ACCESS_KEY }} | |
CACHE_SECRET_KEY: ${{ secrets.CACHE_SECRET_KEY }} | |
enterprise_github_token: ${{ secrets.enterprise_github_token }} | |
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} | |
cypress_e2e_tests: | |
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..." | |
ls -la | |
chmod 775 ./source/vendor/oxid-solution-catalysts/telecash-module/.github/oxid-esales/cypress.sh | |
export CYPRESS_WORKDIR="$(pwd)/source/www/vendor/oxid-solution-catalysts/telecash-module/tests/e2e" | |
./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 |