Skip to content

Fix possible array-assignement from ini-files #42

Fix possible array-assignement from ini-files

Fix possible array-assignement from ini-files #42

Workflow file for this run

name: Build
on: [push]
jobs:
check:
runs-on: ubuntu-latest
continue-on-error: false
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: "8.1"
tools: phive
- name: Download codesniffer
run: phive --no-progress install --trust-gpg-keys 31C7E470E2138192,5E6DDE998AB73B8E phpcs
- name: check
run: ./tools/phpcs
test:
needs: check
runs-on: ubuntu-latest # ${{ matrix.operating-system }}
continue-on-error: ${{ matrix.experimental }}
strategy:
matrix:
# operating-system: [ubuntu-latest, windows-latest, macos-latest]
php-versions: ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2']
experimental: [false]
include:
- php-versions: '8.3'
experimental: true
name: PHP ${{ matrix.php-versions }} # Test on ${{ matrix.operating-system }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: sodium
ini-values: post_max_size=256M, short_open_tag=On
coverage: xdebug
- name: prepare
run: composer update
- name: test
run: composer test
analyze:
needs: test
runs-on: ubuntu-latest
continue-on-error: false
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: "8.1"
tools: phive
- name: Download psalm
run: phive --no-progress install --trust-gpg-keys 8A03EA3B385DBAA1,12CE0F1D262429A5 psalm
- name: install
run: composer update --no-dev
- name: analyze
run: ./tools/psalm
coverage:
needs: test
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
continue-on-error: false
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: "8.1"
coverage: xdebug
- name: Install
run: composer update
- name: run testsuite
run: composer test-coverage
- name: Upload coverage results to Coveralls
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
composer global require php-coveralls/php-coveralls
php-coveralls --coverage_clover=clover.xml -v