Skip to content

Commit

Permalink
OXDEV-8356 Configure GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
tkcreateit committed Jun 10, 2024
1 parent 649fc48 commit 0c450ed
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/trigger.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Auto trigger on push

on: push

jobs:
changed-files:
name: Find changed recipes
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.changed-files.outputs.all_changed_files != '[]' && steps.changed-files.outputs.all_changed_files || '["module-template/b-7.1.x-ce-components-configuration.sh"]' }}
steps:
- name: Checkout recipes
uses: actions/checkout@v4
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v44
with:
files: '**/*.sh'
files_ignore: 'parts/**'
matrix: true

build:
name: Build the recipe
needs: [ changed-files ]
runs-on: ubuntu-latest
strategy:
matrix:
files: ${{ fromJSON(needs.changed-files.outputs.matrix) }}

steps:
- name: Checkout SKD
uses: actions/checkout@v4
with:
repository: OXID-eSales/docker-eshop-sdk

- name: Checkout recipes
uses: actions/checkout@v4
with:
path: recipes/oxid-esales

- name: Run the recipe
run: './recipes/oxid-esales/${{ matrix.files }} -e CE'

- name: Test homepage
run: |
sudo echo "127.0.0.1 localhost.local" | sudo tee -a /etc/hosts
curl -s -N http://localhost.local | grep -q '<div>OXID Online Shop - Alles rund um das Thema Wassersport, Sportbekleidung und Mode </div>'
test ! -f source/source/oxideshop.log
2 changes: 2 additions & 0 deletions module-graphql/b-7.1.x-components-graphql.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
# Flags possible:
# -e for shop edition. Possible values: CE/PE/EE

# Temp comment 1 2

edition='EE'
while getopts e: flag; do
case "${flag}" in
Expand Down
2 changes: 2 additions & 0 deletions module-template/b-7.1.x-ce-components-configuration.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/bash

# temp comment 1 2 3 4 5 6 7 8 9 10 11 12

SCRIPT_PATH=$(dirname ${BASH_SOURCE[0]})

cd $SCRIPT_PATH/../../../ || exit
Expand Down
2 changes: 2 additions & 0 deletions parts/b-7.1.x/start_shop.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

# Flags possible: -e for edition. Example: -eEE

# Temp comment 1

edition="CE"
update="true"

Expand Down

0 comments on commit 0c450ed

Please sign in to comment.