From d9ff88eb5e8989934c098ba5c11e573a1027a313 Mon Sep 17 00:00:00 2001 From: "[OXID-PS] Keywan Ghadami" Date: Thu, 19 Dec 2019 13:48:47 +0100 Subject: [PATCH 1/4] Create oxidmodule.yml --- .github/workflows/oxidmodule.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/oxidmodule.yml diff --git a/.github/workflows/oxidmodule.yml b/.github/workflows/oxidmodule.yml new file mode 100644 index 0000000..47ba909 --- /dev/null +++ b/.github/workflows/oxidmodule.yml @@ -0,0 +1,23 @@ +name: oxid module tests + +on: [push] + +jobs: + build: + + runs-on: ubuntu-latest + container: keywanghadamioxid/oxid-test:6.1 + + steps: + - uses: actions/checkout@v1 + + - name: Validate composer.json and composer.lock + run: composer validate + + - name: setup oxid + run: bash /var/www/OXID/setup.sh + + - name: runt tests + run: | + cd /var/www/OXID/ + vendor/bin/runtests From e2d91a01d74531cc5389fd190129a2ce124c6f55 Mon Sep 17 00:00:00 2001 From: "[OXID-PS] Keywan Ghadami" Date: Thu, 19 Dec 2019 13:58:23 +0100 Subject: [PATCH 2/4] add mysql service --- .github/workflows/oxidmodule.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/oxidmodule.yml b/.github/workflows/oxidmodule.yml index 47ba909..75cd54b 100644 --- a/.github/workflows/oxidmodule.yml +++ b/.github/workflows/oxidmodule.yml @@ -3,11 +3,20 @@ name: oxid module tests on: [push] jobs: + build: + services: + mysql: + image: mysql:5.7 + env: + MYSQL_ROOT_PASSWORD: password + MYSQL_DATABASE: oxid + ports: + - 3306 + options: --health-cmd "mysqladmin ping" --health-interval 10s --health-timeout 5s --health-retries 10 runs-on: ubuntu-latest container: keywanghadamioxid/oxid-test:6.1 - steps: - uses: actions/checkout@v1 From 2c6103fbc89041abfc753bd8e9bc66fdb8b47dd9 Mon Sep 17 00:00:00 2001 From: "[OXID-PS] Keywan Ghadami" Date: Thu, 19 Dec 2019 14:01:52 +0100 Subject: [PATCH 3/4] Update oxidmodule.yml --- .github/workflows/oxidmodule.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/oxidmodule.yml b/.github/workflows/oxidmodule.yml index 75cd54b..974f8cb 100644 --- a/.github/workflows/oxidmodule.yml +++ b/.github/workflows/oxidmodule.yml @@ -9,7 +9,7 @@ jobs: mysql: image: mysql:5.7 env: - MYSQL_ROOT_PASSWORD: password + MYSQL_ROOT_PASSWORD: root MYSQL_DATABASE: oxid ports: - 3306 From 42abcab37627db15a9dc54641615261e2ac67407 Mon Sep 17 00:00:00 2001 From: "[OXID-PS] Keywan Ghadami" Date: Thu, 19 Dec 2019 14:07:32 +0100 Subject: [PATCH 4/4] add module name to github workflow --- .github/workflows/oxidmodule.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/oxidmodule.yml b/.github/workflows/oxidmodule.yml index 974f8cb..c52a59f 100644 --- a/.github/workflows/oxidmodule.yml +++ b/.github/workflows/oxidmodule.yml @@ -17,6 +17,8 @@ jobs: runs-on: ubuntu-latest container: keywanghadamioxid/oxid-test:6.1 + env: + MODULE_NAME: moduleinternals steps: - uses: actions/checkout@v1