Skip to content

Merge branch 'renovate/phpunit-phpunit-10.x' into 'master' #16

Merge branch 'renovate/phpunit-phpunit-10.x' into 'master'

Merge branch 'renovate/phpunit-phpunit-10.x' into 'master' #16

Workflow file for this run

name: PHP Composer
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Validate composer.json and composer.lock
run: composer validate --strict
- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v3
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-
- name: Install dependencies
run: composer install --prefer-dist --no-progress
- name: Run test suite
run: composer run-script phpunit
- name: Psalm – Static Analysis for PHP
# You may pin to the exact commit or the version.
# uses: psalm/psalm-github-actions@2e545d38ff4387b370449e2673088cc8dc40cf1d
uses: psalm/[email protected]
with:
security_analysis: true
report_file: results.sarif
- name: Upload Security Analysis results to GitHub
uses: github/codeql-action/upload-sarif@v1
with:
sarif_file: results.sarif