build #90
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: "build" | |
on: | |
pull_request: | |
paths-ignore: | |
- ".docs/**" | |
push: | |
branches: | |
- "*" | |
schedule: | |
- cron: "0 8 * * 1" # At 08:00 on Monday | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
php: [ '8.1', '8.2', '8.3' ] | |
latte: [ '', '--prefer-lowest' ] | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php }} | |
extensions: curl, iconv, json, mbstring, tokenizer | |
coverage: none | |
- run: composer install --no-interaction | |
- run: composer update latte/latte ${{ matrix.latte }} --no-interaction | |
- run: make tests | |
coverage: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '8.3' | |
extensions: curl, iconv, json, mbstring, tokenizer | |
coverage: pcov | |
- run: composer install --no-interaction | |
- run: make coverage-clover | |
- uses: codecov/codecov-action@v1 | |
phpstan: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '8.3' | |
coverage: none | |
- run: composer install --no-interaction | |
- run: make phpstan | |
coding-standard: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '8.3' | |
coverage: none | |
- run: composer install --no-interaction | |
- run: make cs |