Skip to content

Commit

Permalink
OXDEV-8350 Cleanup pull/push/scheduled workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolaIvanovski committed May 16, 2024
1 parent 6900b00 commit 7968be1
Show file tree
Hide file tree
Showing 10 changed files with 73 additions and 299 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ install_module:

phpunit:
matrix:
testplan: '["~/defaults/module_phpunit_unit.yml","~/defaults/module_phpunit_integration.yml"]'
testplan: '["~/defaults/module_phpunit_unit.yaml","~/defaults/module_phpunit_integration.yaml"]'
load_shop: *install_module_prefix

codeception:
Expand Down
59 changes: 59 additions & 0 deletions .github/workflows/dispatch_module.yaml
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

View workflow job for this annotation

GitHub Actions / module-gdproptin / actionlint

label "\"ubuntu-latest\"" is unknown. available labels are "windows-latest", "windows-latest-8-cores", "windows-2022", "windows-2019", "windows-2016", "ubuntu-latest", "ubuntu-latest-4-cores", "ubuntu-latest-8-cores", "ubuntu-latest-16-cores", "ubuntu-22.04", "ubuntu-20.04", "macos-latest", "macos-latest-xl", "macos-latest-xlarge", "macos-latest-large", "macos-14-xl", "macos-14-xlarge", "macos-14-large", "macos-14", "macos-14.0", "macos-13-xl", "macos-13-xlarge", "macos-13-large", "macos-13", "macos-13.0", "macos-12-xl", "macos-12-xlarge", "macos-12-large", "macos-12", "macos-12.0", "macos-11", "macos-11.0", "macos-10.15", "self-hosted", "x64", "arm", "arm64", "linux", "macos", "windows". if it is a custom label for self-hosted runner, set list of labels in actionlint.yaml config file
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 }}
131 changes: 0 additions & 131 deletions .github/workflows/dispatch_module.yml

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
name: Auto trigger on PR to 8.0.x*
name: Scheduled weekly run

on:
pull_request:
branches:
- 'b-8.0.x**'
schedule:
- cron: '0 4 */7 * *'

jobs:
pull_module:
uses: oxid-eSales/github-actions/.github/workflows/call-universal_test_workflow.yml@v4
module_gdproptin_71x_nightly:
uses: oxid-eSales/github-actions/.github/workflows/call-universal_test_workflow.yaml@v4
with:
testplan: '~/module-gdproptin.yml'
testplan: '~/defaults/7.1.x.yaml,~/defaults/scheduled.yaml,~/module-gdproptin.yaml'
runs_on: '"ubuntu-latest"'
defaults: 'v4'
plan_folder: '.github/oxid-esales'
Expand Down
57 changes: 0 additions & 57 deletions .github/workflows/schedule.yml

This file was deleted.

Loading

0 comments on commit 7968be1

Please sign in to comment.