Skip to content

Commit

Permalink
Add workflows for 7.2.x
Browse files Browse the repository at this point in the history
* Add workflows for 7.2 and replace multiple triggers with one
* Don't run nightly jobs for 7.0.x any more
* Limit triggers except for PRs to a single matrix combination
  • Loading branch information
joernott authored Mar 28, 2024
1 parent f966437 commit a2b147d
Show file tree
Hide file tree
Showing 13 changed files with 130 additions and 266 deletions.
28 changes: 8 additions & 20 deletions .github/workflows/dispatch_matrix_ce.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
options:
- 7.0.x
- 7.1.x
- 7.2.x
- 8.0.x
- smarty 7.0.x
- use custom testplan
Expand Down Expand Up @@ -66,27 +67,14 @@ jobs:
exit 1
;;
esac
# shellcheck disable=SC2088
case '${{ inputs.scenario}}' in
"7.0.x")
# shellcheck disable=SC2088 # Tilde expansion happens in the workflow and not by bash
TESTPLAN="~/defaults/7.0.x.yml,${LIMIT}~/shop_ce_70x.yml"
;;
"7.1.x")
# shellcheck disable=SC2088 # Tilde expansion happens in the workflow and not by bash
TESTPLAN="~/defaults/7.1.x.yml,${LIMIT}~/shop_ce.yml"
;;
"8.0.x")
# shellcheck disable=SC2088 # Tilde expansion happens in the workflow and not by bash
TESTPLAN="${LIMIT}~/shop_ce.yml"
;;
"smarty 7.0.x")
# shellcheck disable=SC2088 # Tilde expansion happens in the workflow and not by bash
TESTPLAN="~/defaults/7.0.x.yml,${LIMIT}~/smarty_7.0.x.yml"
;;
"use custom testplan")
# shellcheck disable=SC2088 # Tilde expansion happens in the workflow and not by bash
TESTPLAN="${{ inputs.custom_testplan }}"
;;
"7.0.x") TESTPLAN="~/defaults/7.0.x.yml,${LIMIT}~/shop_ce_70x.yml" ;;
"7.1.x") TESTPLAN="~/defaults/7.1.x.yml,${LIMIT}~/shop_ce.yml" ;;
"7.2.x") TESTPLAN="~/defaults/7.2.x.yml,${LIMIT}~/shop_ce.yml" ;;
"8.0.x") TESTPLAN="${LIMIT}~/shop_ce.yml" ;;
"smarty 7.0.x") TESTPLAN="~/defaults/7.0.x.yml,${LIMIT}~/smarty_7.0.x.yml" ;;
"use custom testplan") TESTPLAN="${{ inputs.custom_testplan }}" ;;
*)
echo "Illegal choice, fix the workflow"
exit 1
Expand Down
24 changes: 0 additions & 24 deletions .github/workflows/nightly_matrix_full_ce_70x.yml

This file was deleted.

24 changes: 0 additions & 24 deletions .github/workflows/nightly_matrix_full_ce_71x.yml

This file was deleted.

24 changes: 0 additions & 24 deletions .github/workflows/nightly_matrix_full_ce_80x.yml

This file was deleted.

24 changes: 0 additions & 24 deletions .github/workflows/nightly_smarty_70x.yml

This file was deleted.

25 changes: 0 additions & 25 deletions .github/workflows/pull_matrix_full_ce_70x.yml

This file was deleted.

25 changes: 0 additions & 25 deletions .github/workflows/pull_matrix_full_ce_71x.yml

This file was deleted.

25 changes: 0 additions & 25 deletions .github/workflows/pull_matrix_full_ce_80x.yml

This file was deleted.

25 changes: 0 additions & 25 deletions .github/workflows/push_matrix_full_ce_80x.yml

This file was deleted.

25 changes: 0 additions & 25 deletions .github/workflows/push_matrix_slim_ce_70x.yml

This file was deleted.

25 changes: 0 additions & 25 deletions .github/workflows/push_matrix_slim_ce_71x.yml

This file was deleted.

63 changes: 63 additions & 0 deletions .github/workflows/scheduled.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
name: Nightly runs
# Matrix workflow using re-usable github actions

on:
schedule:
- cron: '17 23 * * 1-5'

jobs:
oxideshop_ce_71x_nightly:
if: always()
uses: oxid-eSales/github-actions/.github/workflows/call-universal_test_workflow.yml@v4
with:
testplan: '~/defaults/7.1.x.yml,~/defaults/scheduled.yml,~/shop_ce.yml'
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 }}

oxideshop_ce_72x_nightly:
needs: oxideshop_ce_71x_nightly
if: always()
uses: oxid-eSales/github-actions/.github/workflows/call-universal_test_workflow.yml@v4
with:
testplan: '~/defaults/7.2.x.yml,~/defaults/scheduled.yml,~/shop_ce.yml'
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 }}

oxideshop_ce_80x_nightly:
needs: oxideshop_ce_72x_nightly
if: always()
uses: oxid-eSales/github-actions/.github/workflows/call-universal_test_workflow.yml@v4
with:
testplan: '~/defaults/scheduled.yml,~/shop_ce.yml'
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 }}
Loading

0 comments on commit a2b147d

Please sign in to comment.