-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
OXDEV-8350 Cleanup pull/push/scheduled workflow
- Loading branch information
1 parent
6900b00
commit 43f9f27
Showing
10 changed files
with
74 additions
and
300 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: Manual trigger | ||
# Matrix workflow using re-usable github actions | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
limit: | ||
type: choice | ||
options: | ||
- 'no' | ||
- 'PHP8.1/MySQL5.7' | ||
- 'PHP8.1/MySQL8.0' | ||
- 'PHP8.2/MySQL5.7' | ||
- 'PHP8.2/MySQL8.0' | ||
default: 'PHP8.2/MySQL8.0' | ||
description: 'Limit to one PHP/MySQL combination' | ||
|
||
jobs: | ||
build_testplan: | ||
runs-on: '"ubuntu-latest"' | ||
Check failure on line 20 in .github/workflows/dispatch_module.yaml
|
||
outputs: | ||
testplan: '${{ steps.build.outputs.testplan }}' | ||
steps: | ||
- name: 'Build testplan' | ||
id: build | ||
run: | | ||
# Build testplan | ||
# shellcheck disable=SC2088 # Tilde expansion happens in the workflow and not by bash | ||
case '${{inputs.limit}}' in | ||
"no") LIMIT='';; | ||
"PHP8.1/MySQL5.7") LIMIT='~/defaults/php8.1_mysql5.7_only.yaml,' ;; | ||
"PHP8.1/MySQL8.0") LIMIT='~/defaults/php8.1_mysql8.0_only.yaml,' ;; | ||
"PHP8.2/MySQL5.7") LIMIT='~/defaults/php8.2_mysql5.7_only.yaml,' ;; | ||
"PHP8.2/MySQL8.0") LIMIT='~/defaults/php8.2_mysql8.0_only.yaml,' ;; | ||
*) echo "Illegal choice, fix the workflow" | ||
exit 1 | ||
;; | ||
esac | ||
# shellcheck disable=SC2088 | ||
TESTPLAN="~/defaults/7.1.x.yaml,${LIMIT}~/module-gdproptin.yaml" | ||
echo "testplan=${TESTPLAN}" | tee -a "${GITHUB_OUTPUT}" | ||
dispatch_stable: | ||
needs: build_testplan | ||
uses: oxid-eSales/github-actions/.github/workflows/call-universal_test_workflow.yaml@v4 | ||
with: | ||
testplan: ${{ needs.build_testplan.outputs.testplan }} | ||
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 }} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
13 changes: 6 additions & 7 deletions
13
.github/workflows/pull_module_80x.yml → .github/workflows/schedule.yaml
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
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.