Skip to content

Commit

Permalink
OXDEV-8207: Cleanup workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcelOxid committed May 27, 2024
1 parent 90fb430 commit 99aecf7
Show file tree
Hide file tree
Showing 7 changed files with 67 additions and 120 deletions.
60 changes: 60 additions & 0 deletions .github/oxid-esales/module-template.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
prepare_shop:
git:
shop_ref: '{{ .Data.global.git.default_ref }}'

# {{ $ids := "oe_moduletemplate" }}ids: {{ print $ids }}
# {{ $org := "oxid-esales" }}organisation: {{ print $org }}
# {{ $name := "module-template" }}name: {{ print $name }}
install_module:
matrix:
testplan: '["-"]'
cache:
prefix: &install_module_prefix 'moduleInstallation-ce-{{ .Github.SHA }}-{{ .Github.RunID }}'
ids: &ids '{{ print $ids }}'
activate: *ids
git:
module:
url: &git_module_url '{{ .Github.Repository }}'
ref: '{{ .Github.RefName }}'
package_name: &package_name '{{ print $org }}/{{ print $name }}'
path: *ids

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

codeception:
matrix:
testplan: '["tests/github_actions/defaults/module_codeception_acceptance.yml"]'
load_shop: *install_module_prefix

runtest:
matrix:
testplan: 'skip'
load_shop: *install_module_prefix

sonarcloud:
matrix:
testplan: '["-"]'
strip_path: '/var/www/dev-packages/{{ print $ids }}/'
project_key: 'OXID-eSales_{{ print $name }}'
project_name: *package_name
parameters: |
-Dsonar.language=php
-Dsonar.scm.provider=git
-Dsonar.sources=src
-Dsonar.tests=tests
phpcs_tests:
skip: true

styles:
matrix:
testplan: '["-"]'
load_shop: *install_module_prefix
path: *ids
module_ids: *ids

finish:
slack_title: 'Module {{ print $name }} ({{ .Data.global.git.shop_ref }}) on {{ .Github.Repository }} by {{ .Github.Actor }}'
23 changes: 0 additions & 23 deletions .github/workflows/pull_module_70x.yml

This file was deleted.

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

This file was deleted.

23 changes: 0 additions & 23 deletions .github/workflows/push_module_70x.yml

This file was deleted.

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

This file was deleted.

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

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
name: Auto trigger on PR to 8.0.x*
name: Auto trigger on PR/push to 8.0.x*

on:
pull_request:
push:
branches:
- 'b-8.0.x**'

jobs:
pull_module:
uses: oxid-eSales/github-actions/.github/workflows/call-universal_test_workflow.yml@v3
module_template_php83_mysql_80:
uses: oxid-eSales/github-actions/.github/workflows/call-universal_test_workflow.yml@v4
with:
testplan: 'tests/github_actions/module-template.yml'
testplan: '~/defaults/8.0.x.yaml,~/defaults/php8.3_mysql8.0_only.yaml,~/module-template.yaml'
runs_on: '"ubuntu-latest"'
defaults: 'v3'
defaults: 'v4'
plan_folder: '.github/oxid-esales'
secrets:
DOCKER_HUB_USER: ${{ secrets.DOCKER_HUB_USER }}
DOCKER_HUB_TOKEN: ${{ secrets.DOCKER_HUB_TOKEN }}
Expand Down

0 comments on commit 99aecf7

Please sign in to comment.