Skip to content

Commit

Permalink
Create branch 7.3.x GHA workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
AshrafOxid committed Oct 10, 2024
1 parent b983bec commit 2b598c3
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/dispatch_component.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:
- 7.0.x
- 7.1.x
- 7.2.x
- 7.3.x
- 8.0.x
- use custom testplan
default: '8.0.x'
Expand Down Expand Up @@ -74,6 +75,7 @@ jobs:
"7.0.x") TESTPLAN="~/defaults/7.0.x.yaml,${LIMIT}${PLAN}" ;;
"7.1.x") TESTPLAN="~/defaults/7.1.x.yaml,${LIMIT}${PLAN}" ;;
"7.2.x") TESTPLAN="~/defaults/7.2.x.yaml,${LIMIT}${PLAN}" ;;
"7.3.x") TESTPLAN="~/defaults/7.3.x.yaml,${LIMIT}${PLAN}" ;;
"8.0.x") TESTPLAN="${LIMIT}${PLAN}" ;;
"use custom testplan") TESTPLAN="${{ inputs.custom_testplan }}" ;;
*)
Expand Down
23 changes: 23 additions & 0 deletions .github/workflows/scheduled.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,29 @@ jobs:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

twig_component_73x_weekly:
if: always()
uses: oxid-eSales/github-actions/.github/workflows/universal_workflow_light.yaml@v4
with:
testplan: '~/defaults/7.3.x.yaml,~/defaults/scheduled.yaml,~/twig-component.yaml'
runs_on: '"ubuntu-latest"'
defaults: 'v4'
plan_folder: '.github/oxid-esales'
custom_testplan_yaml: |
global:
title: 'twig component 7.3.x-weekly'
finish:
slack_title: 'Weekly Twig Component 7.3.x on {{ .Github.Repository }}'
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 }}

twig_component_80x_weekly:
if: always()
uses: oxid-eSales/github-actions/.github/workflows/universal_workflow_light.yaml@v4
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/trigger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ jobs:
refs/heads/b-7.0.x*) TESTPLAN="~/defaults/7.0.x.yaml,${LIMIT70}~/twig-component.yaml" ;;
refs/heads/b-7.1.x*) TESTPLAN="~/defaults/7.1.x.yaml,${LIMIT}~/twig-component.yaml" ;;
refs/heads/b-7.2.x*) TESTPLAN="~/defaults/7.2.x.yaml,${LIMIT}~/twig-component.yaml" ;;
refs/heads/b-7.3.x*) TESTPLAN="~/defaults/7.3.x.yaml,${LIMIT}~/twig-component.yaml" ;;
refs/heads/b-8.0.x*) TESTPLAN="~/defaults/8.0.x.yaml,${LIMIT}~/twig-component.yaml" ;;
*)
echo "Can't match ${REF_TO_CHECK} to a version, can't determine test plan."
Expand All @@ -38,6 +39,8 @@ jobs:
git clone --depth 2 "${{ github.repositoryUrl }}" --branch "${{ github.ref_name}}" --single-branch .tmp
if [ -f .tmp/CHANGELOG-3.x.md ]; then
TESTPLAN="~/defaults/8.0.x.yaml,${LIMIT}~/twig-component.yaml"
elif [ -f .tmp/CHANGELOG-2.x.md ]; then
TESTPLAN="~/defaults/7.3.x.yaml,${LIMIT}~/twig-component.yaml"
elif [ -f .tmp/CHANGELOG-2.x.md ]; then
TESTPLAN="~/defaults/7.2.x.yaml,${LIMIT}~/twig-component.yaml"
elif [ -f .tmp/CHANGELOG-2.x.md ]; then
Expand Down

0 comments on commit 2b598c3

Please sign in to comment.