Skip to content

tomas-kulhanek running base actions #211

tomas-kulhanek running base actions

tomas-kulhanek running base actions #211

Workflow file for this run

name: Run base actions
run-name: ${{ github.actor }} running base actions
concurrency:
group: "${{ github.ref }}-${{ github.workflow }}"
cancel-in-progress: true
on:
workflow_dispatch:
pull_request:
push:
schedule:
- cron: "0 7 * * MON"
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.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: |
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@v2
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 tests/Unit
env:
XDEBUG_MODE: coverage
CERT_PRIV: '${{ secrets.CERT_PRIV }}'
CERT_PUB: '${{ secrets.CERT_PUB }}'
CERT_PASSPHRASE: '${{ secrets.CERT_PASSPHRASE }}'