Skip to content

BP-2537 prefilled email also for customer users #1058

BP-2537 prefilled email also for customer users

BP-2537 prefilled email also for customer users #1058

Workflow file for this run

name: Module checks
on:
push:
branches: [ develop ]
pull_request:
branches: [ develop ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: setup php
uses: shivammathur/setup-php@v2
with:
php-version: 7.3
tools: composer:v2
- uses: actions/checkout@v2
- name: validate composer json
run: composer validate
- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v2
with:
path: ${{ github.workspace }}/${{ env.namespace }}-source/vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-
- name: PHPUnit and PHPCS
run: |
pull_number=$(jq --raw-output .pull_request.number "$GITHUB_EVENT_PATH")
url="https://api.github.com/repos/buckaroo-it/Magento2/pulls/$pull_number/files"
echo $url
curl $url > files_changed
cat files_changed | grep '"filename"' | sed 's/\"filename\"\: \"//' | sed 's/\",//' | xargs ls
echo '{"http-basic": {"repo.magento.com": {"username": "${{ secrets.REPO_USERNAME }}","password": "${{ secrets.REPO_PASS }}"}}}' > auth.json
composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition=2.3.6 m23
mkdir -p m23/app/code/Buckaroo/Magento2/
rsync -r --exclude='m23' ./ m23/app/code/Buckaroo/Magento2/
cat files_changed | grep '"filename"' | sed 's/\"filename\"\: \"//' | sed 's/\",//' | xargs ./m23/vendor/bin/phpcs --standard=Magento2
cd m23
bin/magento module:enable --all
bin/magento setup:di:compile
vendor/phpunit/phpunit/phpunit -c dev/tests/unit/phpunit.xml.dist app/code/Buckaroo/Magento2