Bump actions/download-artifact from 2 to 4.1.7 in /.github/workflows #112
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "PHP Code Analysis + Style" | |
on: | |
- "push" | |
- "pull_request" | |
jobs: | |
backend: | |
runs-on: "ubuntu-18.04" | |
strategy: | |
matrix: | |
php-versions: ['7.4'] | |
steps: | |
- uses: "actions/[email protected]" | |
- name: "Cache dependencies installed with composer" | |
uses: "actions/[email protected]" | |
with: | |
path: "~/.composer/cache" | |
key: "composer-${{ matrix.php-version }}-${{ hashFiles('composer.json') }}" | |
restore-keys: "composer-${{ matrix.php-version }}-" | |
- name: "Setup PHP Action" | |
uses: "shivammathur/setup-php@v2" | |
with: | |
php-version: "${{ matrix.php-versions }}" | |
extensions: "intl, xdebug, imagick, apcu" | |
- name: "Install SSH key" | |
uses: "shimataro/ssh-key-action@v2" | |
with: | |
key: "${{ secrets.SSH_KEY_CI }}" | |
name: "id_rsa" | |
known_hosts: "${{ secrets.SSH_KNOWN_HOST_AKENEO_EE }}" | |
# Install / Prepare | |
- name: "Add EE Composer repository" | |
run: "composer -n config repositories.ee vcs ${{ secrets.SSH_AKENEO_EE_REPOSITORY }}" | |
- name: "Install PHP dependencies" | |
run: "composer install --prefer-dist --no-interaction --optimize-autoloader --no-suggest --no-progress" | |
# CI | |
- name: "Linting" | |
run: "vendor/bin/phplint ./src" | |
- name: "Code Sniffer" | |
run: "vendor/bin/phpcs -d memory_limit=-1 --standard=PSR2 --extensions=php ./src" | |
- name: "PHPStan" | |
run: "vendor/bin/phpstan analyse" |