Skip to content

6.5 Compatible

6.5 Compatible #30

Workflow file for this run

name: PR Pipeline
on: [pull_request]
jobs:
phpecs:
name: Easy code standard
runs-on: ubuntu-latest
steps:
- name: Clone Code
uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.1
- name: Install Dependencies
run: make dev -B
- name: Run ecs
run: make ecs -B
phpcsfixer:
name: PHP CS Fixer
needs: phpecs
runs-on: ubuntu-latest
steps:
- name: Clone Code
uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.1
- name: Install Dependencies
run: make dev -B
- name: Run PHP CS Fixer
run: make csfix -B
phpstan:
name: Static Analyzers
needs: phpcsfixer
runs-on: ubuntu-latest
steps:
- name: Clone Code
uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.1
- name: Install Dependencies
run: make dev -B
- name: Run PHPStan
run: make stan -B
phpunit:
name: Unit Tests | PHP ${{ matrix.shopware }}
needs: phpstan
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
shopware: [ '6.5.2.0', ]
steps:
- name: Clone Code
uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.1
- name: Start Docker
run: |
docker run --rm --name shop --env PHP_VERSION=8.1 -d dockware/dev:${{ matrix.shopware }}
sleep 30
docker logs shop
- name: Upload into Docker
run: |
docker cp $(pwd)/. shop:/var/www/html/custom/plugins/SasEsd
docker exec shop bash -c 'sudo chown www-data:www-data /var/www/html/custom/plugins -R'
- name: Install and Build Plugin
run: |
docker exec shop bash -c 'cd /var/www/html/custom/plugins/SasEsd && make clean'
docker exec shop bash -c 'cd /var/www/html/custom/plugins/SasEsd && make dev'
docker exec shop bash -c 'cd /var/www/html/custom/plugins/SasEsd && make phpunit'
integration:
name: Integration Tests | Shopware ${{ matrix.shopware }} | PHP 8.1
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
shopware: [ '6.5.2.0', ]
steps:
- name: Clone Code
uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.1
- name: Install PROD Dependencies
run: make install -B
- name: Start Docker
run: |
docker run --rm --name shop --env PHP_VERSION=8.1 -d dockware/dev:${{ matrix.shopware }}
sleep 30
docker logs shop
- name: Upload into Docker
run: |
docker cp $(pwd)/. shop:/var/www/html/custom/plugins/SasEsd
docker exec shop bash -c 'sudo chown www-data:www-data /var/www/html/custom/plugins -R'
- name: Install and Build Plugin
run: |
docker exec shop bash -c 'cd /var/www/html/custom/plugins/SasEsd && make clean'
docker exec shop bash -c 'cd /var/www/html/custom/plugins/SasEsd && make install'
docker exec shop bash -c 'cd /var/www/html/custom/plugins/SasEsd && make build'