Update rector/rector requirement from ^0.19.2 to ^0.19.2 || ^1.0.0 #120
Workflow file for this run
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: "main" | |
on: | |
pull_request: | |
push: | |
schedule: | |
- cron: "0 7 * * 1" | |
env: | |
extensions: "xml mbstring curl openssl dom xdebug" | |
composer-install-args: "--no-progress --no-interaction --prefer-dist --no-scripts" | |
jobs: | |
rector: | |
name: "Rector" | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
php-version: [ '8.3' ] | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-version }} | |
coverage: none | |
- uses: php-actions/composer@v6 | |
with: | |
php_version: ${{ matrix.php-version }} | |
args: "${{ env.composer-install-args }}" | |
- run: composer check:rector | |
qa: | |
name: "Quality assurance" | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
php-version: ['8.3'] | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-version }} | |
coverage: none | |
- uses: php-actions/composer@v6 | |
with: | |
php_version: ${{ matrix.php-version }} | |
args: "${{ env.composer-install-args }}" | |
- run: composer check:cs | |
static-analysis: | |
name: "Static analysis" | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
php-version: [ '8.3' ] | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-version }} | |
coverage: none | |
- uses: php-actions/composer@v6 | |
with: | |
php_version: ${{ matrix.php-version }} | |
args: "${{ env.composer-install-args }}" | |
- name: PHPStan Static Analysis | |
run: composer check:phpstan | |
tests: | |
name: "Tests" | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
php-version: [ '8.1', '8.2', '8.3' ] | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-version }} | |
coverage: none | |
- uses: php-actions/composer@v6 | |
with: | |
php_version: ${{ matrix.php-version }} | |
args: "${{ env.composer-install-args }}" | |
- run: | | |
cp src/cacert.pem.dist src/cacert.pem | |
mkdir .data | |
echo ${{ secrets.CERT_PRIV }} | base64 -d > .data/cert.pem | |
echo ${{ secrets.CERT_PUB }} | base64 -d > .data/cert.crt | |
- uses: 1password/load-secrets-action@v1 | |
with: | |
# Export loaded secrets as environment variables | |
export-env: true | |
env: | |
OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }} | |
OVM_CERT_ID_DS: op://mafzpsiebs3jzo6sijs5rtfeg4/nwdbxdp4vx3qcczbfee7q2jg4i/text | |
OVM_CERT_LOGIN_USER: op://mafzpsiebs3jzo6sijs5rtfeg4/nwdbxdp4vx3qcczbfee7q2jg4i/username | |
OVM_CERT_PASSWORD_USER: op://mafzpsiebs3jzo6sijs5rtfeg4/nwdbxdp4vx3qcczbfee7q2jg4i/password | |
FO_ID_DS: op://mafzpsiebs3jzo6sijs5rtfeg4/db3jkjbdwomausvvp52q3qeefi/text | |
FO_LOGIN_USER: op://mafzpsiebs3jzo6sijs5rtfeg4/db3jkjbdwomausvvp52q3qeefi/username | |
FO_PASSWORD_USER: op://mafzpsiebs3jzo6sijs5rtfeg4/db3jkjbdwomausvvp52q3qeefi/password | |
OVM_ID_DS: op://mafzpsiebs3jzo6sijs5rtfeg4/2ksmcswa4ot4nh55lcsfmnpuau/text | |
OVM_LOGIN_USER: op://mafzpsiebs3jzo6sijs5rtfeg4/2ksmcswa4ot4nh55lcsfmnpuau/username | |
OVM_PASSWORD_USER: op://mafzpsiebs3jzo6sijs5rtfeg4/2ksmcswa4ot4nh55lcsfmnpuau/password | |
PFO_ID_DS: op://mafzpsiebs3jzo6sijs5rtfeg4/6g5plyqgiqxexvefr4nvtos4xu/text | |
PFO_LOGIN_USER: op://mafzpsiebs3jzo6sijs5rtfeg4/6g5plyqgiqxexvefr4nvtos4xu/username | |
PFO_PASSWORD_USER: op://mafzpsiebs3jzo6sijs5rtfeg4/6g5plyqgiqxexvefr4nvtos4xu/password | |
- name: PHPUnit | |
run: composer test:phpunit | |
env: | |
XDEBUG_MODE: coverage | |
CERT_PRIV: '${{ secrets.CERT_PRIV }}' | |
CERT_PUB: '${{ secrets.CERT_PUB }}' | |
CERT_PASSPHRASE: '${{ secrets.CERT_PASSPHRASE }}' |