Files
branch-usage-checker/.github/workflows/test.yml
2022-12-24 00:57:02 +02:00

47 lines
1.1 KiB
YAML

name: Tests
on: ['push', 'pull_request']
jobs:
ci:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
php: ['8.0']
dependency-version: [prefer-lowest, prefer-stable]
name: PHP ${{ matrix.php }} - ${{ matrix.os }} - ${{ matrix.dependency-version }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: fileinfo
tools: composer:v2
coverage: pcov
- name: Setup Problem Matches
run: |
echo "::add-matcher::${{ runner.tool_cache }}/php.json"
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
- name: Install Composer dependencies
run: composer update --${{ matrix.dependency-version }} --no-interaction --prefer-dist --no-suggest
- name: PHPUnit Testing
run: vendor/bin/pest --coverage
- name: Build
run: composer build -- --build-version=0.0
- name: Build Check
run: php builds/branch-usage-checker --version