Skip to content

Merge pull request #9 from worksome/dependabot/github_actions/actions… #22

Merge pull request #9 from worksome/dependabot/github_actions/actions…

Merge pull request #9 from worksome/dependabot/github_actions/actions… #22

Workflow file for this run

name: Tests
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
env:
PREVENT_OUTPUT: true
strategy:
fail-fast: true
matrix:
php: [8.2]
stability: [prefer-stable]
name: P${{ matrix.php }} ${{ matrix.stability }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, libxml
coverage: none
- name: Setup problem matchers
run: |
echo "::add-matcher::${{ runner.tool_cache }}/php.json"
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
- name: Install dependencies
run: |
composer update --${{ matrix.stability }} --prefer-dist --no-interaction --ansi
- name: Execute tests
run: composer test:unit