Release of 6.3.0 (#483) #5
This file contains hidden or 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: PHPStan PS 1.7 | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| php_stan: | |
| name: PHPStan on PS ${{ matrix.prestashop-version }} & PHP ${{ matrix.php-version }} | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| prestashop-version: ['1.7.6.3', '1.7.8.11'] | |
| php-version: ['7.3'] | |
| steps: | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: '${{ matrix.php-version }}' | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Cache composer dependencies | |
| uses: actions/cache@v4 | |
| with: | |
| path: vendor | |
| key: composer-${{ runner.os }}-${{ matrix.php-version }}-${{ matrix.prestashop-version }}-${{ hashFiles('composer.lock') }} | |
| restore-keys: | | |
| composer-${{ runner.os }}-${{ matrix.php-version }}-${{ matrix.prestashop-version }} | |
| - name: Composer install | |
| run: composer install | |
| - name: Pull PrestaShop files (Tag ${{ matrix.prestashop-version }}) | |
| run: docker run -tid --rm -v ps-volume:/var/www/html --name temp-ps prestashop/prestashop:${{ matrix.prestashop-version }} | |
| - name: Fetch config file | |
| run: | | |
| mkdir -p temp-config | |
| cd temp-config | |
| git init | |
| git remote add origin https://x-access-token:${{ secrets.GLOBAL_GITHUB_TOKEN }}@github.com/MultiSafepay/docker-prestashop.git | |
| git config core.sparsecheckout true | |
| echo "include/phpstan_stub.php" >> .git/info/sparse-checkout | |
| echo "include/phpstan-ps-1.7.neon" >> .git/info/sparse-checkout | |
| git pull --depth=1 origin main | |
| cd .. | |
| cp temp-config/include/phpstan_stub.php ./phpstan_stub.php | |
| cp temp-config/include/phpstan-ps-1.7.neon ./phpstan-ps-1.7.neon | |
| rm -rf temp-config | |
| - name: Run PHPStan | |
| run: docker run --rm --volumes-from temp-ps -v $PWD:/web/module -e _PS_ROOT_DIR_=/var/www/html --workdir=/web/module phpstan/phpstan:0.12 analyse --configuration=phpstan-ps-1.7.neon --debug --error-format github |