Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
seyuf authored Apr 20, 2024
1 parent dc4ec09 commit 4b794f9
Showing 1 changed file with 26 additions and 24 deletions.
50 changes: 26 additions & 24 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,39 +27,39 @@ jobs:
options: -e="discovery.type=single-node" -e "plugins.security.disabled=true" -e "plugins.security.ssl.http.enabled=false" --health-cmd="curl http://localhost:9200/_cluster/health" --health-interval=10s --health-timeout=5s --health-retries=10

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: 'install fresh magento repo'
#if: always()
if: ${{false}}
uses: MAD-I-T/magento-actions@master
uses: MAD-I-T/magento-actions@v3.28
env:
COMPOSER_AUTH: ${{secrets.COMPOSER_AUTH}}
with:
process: 'create-project'
magento_version: 2.4.7-beta2
magento_version: 2.4.7
#no_push: 1 ## add this arg to not push to the repo ideal for quick test on specific version


- name: 'install fresh pwa-studio project'
#if: always()
if: ${{false}}
uses: MAD-I-T/magento-actions@master
uses: MAD-I-T/magento-actions@v3.28
with:
process: 'pwa-studio-install'
no_push: 1

- name: 'launch magento2 unit test'
if: always()
uses: MAD-I-T/magento-actions@master
uses: MAD-I-T/magento-actions@v3.28
env:
COMPOSER_AUTH: ${{secrets.COMPOSER_AUTH}}
with:
process: 'unit-test'

- name: 'launch magento2 unit test filtered by testsuite'
if: always()
uses: MAD-I-T/magento-actions@master
uses: MAD-I-T/magento-actions@v3.28
env:
COMPOSER_AUTH: ${{secrets.COMPOSER_AUTH}}
with:
Expand All @@ -69,7 +69,7 @@ jobs:

- name: 'launch magento2 unit test specific module i.e module-email'
if: always()
uses: MAD-I-T/magento-actions@master
uses: MAD-I-T/magento-actions@v3.28
env:
COMPOSER_AUTH: ${{secrets.COMPOSER_AUTH}}
with:
Expand All @@ -82,7 +82,7 @@ jobs:

- name: 'launch magento2 static test'
if: always()
uses: MAD-I-T/magento-actions@master
uses: MAD-I-T/magento-actions@v3.28
env:
COMPOSER_AUTH: ${{secrets.COMPOSER_AUTH}}
with:
Expand All @@ -91,7 +91,7 @@ jobs:

- name: 'magento coding standard checker'
if: always()
uses: MAD-I-T/magento-actions@master
uses: MAD-I-T/magento-actions@v3.28
env:
COMPOSER_AUTH: ${{secrets.COMPOSER_AUTH}}
with:
Expand All @@ -104,7 +104,7 @@ jobs:
- name: 'launch magento2 build'
if: always()
id: build
uses: MAD-I-T/magento-actions@master
uses: MAD-I-T/magento-actions@v3.28
env:
COMPOSER_AUTH: ${{secrets.COMPOSER_AUTH}}
with:
Expand All @@ -113,7 +113,7 @@ jobs:

- name: 'launch security scanner files'
if: always()
uses: MAD-I-T/magento-actions@master
uses: MAD-I-T/magento-actions@v3.28
env:
COMPOSER_AUTH: ${{secrets.COMPOSER_AUTH}}
with:
Expand All @@ -122,22 +122,22 @@ jobs:

- name: 'launch security scanner modules'
if: always()
uses: MAD-I-T/magento-actions@master
uses: MAD-I-T/magento-actions@v3.28
env:
COMPOSER_AUTH: ${{secrets.COMPOSER_AUTH}}
with:
process: 'security-scan-modules'

- name: 'mess detector'
if: always()
uses: MAD-I-T/magento-actions@master
uses: MAD-I-T/magento-actions@v3.28
with:
process: 'mess-detector'
md_src_path: 'vendor/magento/module-email'

- name: 'phpstan'
if: always()
uses: MAD-I-T/magento-actions@master
uses: MAD-I-T/magento-actions@v3.28
with:
process: 'phpstan'
exec_path: 'vendor/magento/module-email'
Expand All @@ -146,7 +146,7 @@ jobs:
#### section to be activated, for zero downtime deployment on preprod and/or prod remove ${{false}}
- name: 'launch magento2 zero downtime deploy with no permission check'
if: ${{false}} # if: steps.build.outcome == 'success'
uses: MAD-I-T/magento-actions@master
uses: MAD-I-T/magento-actions@v3.28
env:
COMPOSER_AUTH: ${{secrets.COMPOSER_AUTH}}
BUCKET_COMMIT: bucket-commit-${{github.sha}}.tar.gz
Expand All @@ -163,7 +163,7 @@ jobs:

- name: 'unlock deployer if fails'
if: ${{false}} # if: failure() || cancelled()
uses: MAD-I-T/magento-actions@master
uses: MAD-I-T/magento-actions@v3.28
env:
COMPOSER_AUTH: ${{secrets.COMPOSER_AUTH}}
BUCKET_COMMIT: bucket-commit-${{github.sha}}.tar.gz
Expand All @@ -180,7 +180,7 @@ jobs:

- name: 'start zero downtime deploy on production'
if: ${{false}} # if: steps.build.outcome == 'success'
uses: MAD-I-T/magento-actions@master
uses: MAD-I-T/magento-actions@v3.28
env:
COMPOSER_AUTH: ${{secrets.COMPOSER_AUTH}}
BUCKET_COMMIT: bucket-commit-${{github.sha}}.tar.gz
Expand All @@ -197,7 +197,7 @@ jobs:

- name: 'unlock php deployer if the deployment fails on production'
if: ${{false}} #if: failure() || cancelled()
uses: MAD-I-T/magento-actions@master
uses: MAD-I-T/magento-actions@v3.28
env:
COMPOSER_AUTH: ${{secrets.COMPOSER_AUTH}}
BUCKET_COMMIT: bucket-commit-${{github.sha}}.tar.gz
Expand All @@ -221,6 +221,8 @@ jobs:
env:
MYSQL_ROOT_PASSWORD: magento
MYSQL_DATABASE: magento
ports:
- 3306:3306
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=5 -e MYSQL_ROOT_PASSWORD=magento -e MYSQL_USER=magento -e MYSQL_PASSWORD=magento -e MYSQL_DATABASE=magento --entrypoint sh mysql:8 -c "exec docker-entrypoint.sh mysqld --default-authentication-plugin=mysql_native_password"
#elasticsearch:
# image: docker://elasticsearch:7.17.0
Expand All @@ -242,21 +244,21 @@ jobs:
options: -e="discovery.type=single-node" -e "plugins.security.disabled=true" --health-cmd="curl http://localhost:9200/_cluster/health" --health-interval=10s --health-timeout=5s --health-retries=10

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: 'install fresh magento repo'
#if: always()
if: ${{true}}
uses: MAD-I-T/magento-actions@master
uses: MAD-I-T/magento-actions@v3.28
env:
COMPOSER_AUTH: ${{secrets.COMPOSER_AUTH}}
with:
process: 'create-project'
magento_version: 2.4.6
magento_version: 2.4.7
no_push: 1

- name: 'launch magento2 integration test custom testsuite'
if: ${{true}}
uses: MAD-I-T/magento-actions@master
uses: MAD-I-T/magento-actions@v3.28
env:
COMPOSER_AUTH: ${{secrets.COMPOSER_AUTH}}
with:
Expand All @@ -265,7 +267,7 @@ jobs:

- name: 'integration test class'
if: ${{true}}
uses: MAD-I-T/magento-actions@master
uses: MAD-I-T/magento-actions@v3.28
env:
COMPOSER_AUTH: ${{secrets.COMPOSER_AUTH}}
with:
Expand All @@ -274,7 +276,7 @@ jobs:

- name: 'integration test class filter'
if: ${{true}}
uses: MAD-I-T/magento-actions@master
uses: MAD-I-T/magento-actions@v3.28
env:
COMPOSER_AUTH: ${{secrets.COMPOSER_AUTH}}
with:
Expand Down

0 comments on commit 4b794f9

Please sign in to comment.