Skip to content

Merge pull request #8 from cspray/task/use-correct-php-parser-factory #22

Merge pull request #8 from cspray/task/use-correct-php-parser-factory

Merge pull request #8 from cspray/task/use-correct-php-parser-factory #22

Workflow file for this run

name: 'Unit Tests & Static Analysis'
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
continuous-integration:
runs-on: ubuntu-latest
env:
XDEBUG_MODE: coverage
steps:
- uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.1
tools: composer:2
- name: Setup problem matchers for PHP
run: echo "::add-matcher::${{ runner.tool_cache }}/php.json"
- name: Setup problem matchers for PHPUnit
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
- name: Composer Install
run: composer install
- name: PHPUnit
run: ./vendor/bin/phpunit
- name: Psalm
run: ./vendor/bin/psalm