PHP analyze & tests #1032
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: PHP analyze & tests | |
on: | |
push: ~ | |
pull_request: ~ | |
schedule: | |
- cron: '0 */3 * * *' | |
permissions: | |
contents: read | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
php-version: ['8.2', '8.3'] | |
steps: | |
- uses: actions/checkout@master | |
- name: installing PHP | |
uses: shivammathur/setup-php@master | |
with: | |
php-version: ${{ matrix.php-version }} | |
tools: composer:latest | |
- name: Validate composer.json | |
run: composer validate --strict | |
- name: Install dependencies | |
run: composer install | |
- name: Run static php analyze. | |
run: composer php-analyze | |
- name: Run PHPUnit Tests | |
run: composer php-tests | |
- name: Upload coverage reports to Codecov | |
uses: codecov/codecov-action@main | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |