Skip to content

Merge branch 'develop' into dependabot/composer/phpseclib/phpseclib-3… #426

Merge branch 'develop' into dependabot/composer/phpseclib/phpseclib-3…

Merge branch 'develop' into dependabot/composer/phpseclib/phpseclib-3… #426

Workflow file for this run

name: Unit Tests
on: [push]
jobs:
phpcs:
name: Code Sniffer
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
############################################################################
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
tools: composer
extensions: ast, bcmath, gd
coverage: none
#https://github.com/actions/cache/blob/master/examples.md#php---composer
- name: Cache composer packages
id: composer-cache
run: |
composer config cache-files-dir
echo "::set-output name=dir::$(composer config cache-files-dir)"
- uses: actions/cache@v1
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-
- name: Update project dependencies
env:
REPO_USR: ${{ secrets.REPO_USR }}
REPO_PSW: ${{ secrets.REPO_PSW }}
run: |
composer config repositories.0 composer https://repo.magento.com
composer config http-basic.repo.magento.com "$REPO_USR" "$REPO_PSW"
composer install --prefer-dist --no-progress --no-suggest
############################################################################
- name: Run unit tests
run: |
./vendor/bin/phpunit Test