Skip to content

no longer support OPENSSL_PKCS1_PADDING, ref wechatpay-apiv3/wechatpa… #418

no longer support OPENSSL_PKCS1_PADDING, ref wechatpay-apiv3/wechatpa…

no longer support OPENSSL_PKCS1_PADDING, ref wechatpay-apiv3/wechatpa… #418

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
ci:
defaults:
run:
shell: bash
name: CI
strategy:
fail-fast: false
matrix:
php-version: ['7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3']
os: [ubuntu-latest, macOS-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Set git config
run: |
git config --global core.autocrlf false
git config --global core.symlinks true
if: runner.os == 'Windows'
- uses: actions/checkout@v3
- name: Setup PHP${{ matrix.php-version }}@${{ matrix.os }}
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
coverage: none
extensions: json, curl, libxml, simplexml, openssl
- name: Validate composer.json and composer.lock
run: composer validate --strict --no-check-version
- name: Get composer cache directory
id: composer-cache
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
- name: Cache dependencies on PHP(=7.1)@${{ matrix.os }}
if: matrix.php-version == '7.1'
id: dependencies-cache-71
uses: actions/cache@v3
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ matrix.os }}-php${{ matrix.php-version }}-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php${{ matrix.php-version }}-
- name: Cache dependencies on PHP(=7.2)@${{ matrix.os }}
if: matrix.php-version == '7.2'
id: dependencies-cache-72
uses: actions/cache@v3
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ matrix.os }}-php${{ matrix.php-version }}-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php${{ matrix.php-version }}-
- name: Cache dependencies on PHP(>7.2)@${{ matrix.os }}
if: matrix.php-version > 7.2
id: dependencies-cache
uses: actions/cache@v3
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ matrix.os }}-php-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-
- name: Install dependencies
run: composer install --no-interaction --no-progress
- name: Environments
run: |
openssl version
php --ri openssl
php --ri libxml
php --ri curl
- run: vendor/bin/phpstan analyse --no-progress --memory-limit=-1 -c phpstan.v7.1.neon
if: matrix.php-version == '7.1'
id: phpstan-php-7_1
- run: vendor/bin/phpstan analyse --no-progress --memory-limit=-1
if: 7.1 < matrix.php-version && matrix.php-version < 8.2
id: phpstan-php-7_2-8_1
- run: vendor/bin/phpstan analyse --no-progress --memory-limit=-1 -c phpstan.v8.2.neon
if: 8.1 < matrix.php-version && matrix.php-version < '8.4'
id: phpstan-php-8_2-8_3
- run: |
make keygen
make x509crt
- run: vendor/bin/phpunit
- run: make clean