[bot] updates mime-info database from upstream (#4) #10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
- mime-info-updates | |
jobs: | |
test: | |
name: PHP ${{ matrix.php-version }} + ${{ matrix.dependencies }} | |
runs-on: ubuntu-latest | |
continue-on-error: false | |
strategy: | |
matrix: | |
php-version: | |
- '8.1' | |
- '8.2' | |
- '8.3' | |
dependencies: | |
- highest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Install PHP with extensions | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-version }} | |
coverage: pcov | |
tools: composer:v2, phpunit | |
- name: Install Composer dependencies (${{ matrix.dependencies }}) | |
uses: ramsey/composer-install@v2 | |
with: | |
dependency-versions: ${{ matrix.dependencies }} | |
composer-options: --prefer-dist --prefer-stable | |
- name: Run tests with coverage | |
run: phpunit -c phpunit.xml --coverage-clover build/logs/clover.xml | |
- name: Send coverage to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
file: build/logs/clover.xml |