Skip to content

Commit

Permalink
Split job in two
Browse files Browse the repository at this point in the history
  • Loading branch information
m1k3lm committed Dec 28, 2023
1 parent 8d8fa56 commit d2aeb3c
Showing 1 changed file with 20 additions and 9 deletions.
29 changes: 20 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ name: m2-actions-sequra-core-test
on: [push]

jobs:
magento2-build:
magento2-test:
runs-on: ubuntu-latest
container: ubuntu
name: 'm2 tests & build'
name: 'm2 unit and integration tests'
services:
mysql:
image: docker://mysql:8.0
Expand All @@ -29,16 +29,19 @@ jobs:
RABBITMQ_DEFAULT_VHOST: "/"
ports:
- 5672:5672

strategy:
matrix:
magento_version: [2.4.6]
steps:
- name: 'install fresh magento repo'
uses: MAD-I-T/magento-actions@v3.25
env:
COMPOSER_AUTH: ${{secrets.COMPOSER_AUTH}}
with:
process: 'install-magento'
magento_version: 2.4.6
magento_version: ${{ matrix.magento_version }}
no_push: 1 ## add this arg to not push to the repo ideal for quick test on specific version


### Download our code in custom dir###
- uses: actions/checkout@v3
Expand All @@ -64,22 +67,30 @@ jobs:
COMPOSER_AUTH: ${{secrets.COMPOSER_AUTH}}
with:
process: 'integration-test'
elasticsearch: 1
testsuite: "Sequra_Core Integration Tests"

unit_test_subset_path: "Sequra_Core Integration Tests"

magento2-checks:
runs-on: ubuntu-latest
container: ubuntu
name: 'm2 Standards, MD and PHPStan'
steps:
### Download our code in custom dir###
- uses: actions/checkout@v3
with:
path: Sequra_Core
- name: 'phpstan'
if: always()
uses: MAD-I-T/magento-actions@v3.25
with:
process: 'phpstan'
exec_path: 'app/code/Sequra/Core'
exec_path: '../Sequra_Core'

- name: 'mess detector'
if: always()
uses: MAD-I-T/magento-actions@v3.25
with:
process: 'mess-detector'
md_src_path: 'app/code/Sequra/Core'
md_src_path: '../Sequra_Core'

- name: 'Magento coding standard checking'
if: always()
Expand Down

0 comments on commit d2aeb3c

Please sign in to comment.