Defining PHP 8.1 as base version #46
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: PHPUnit | |
on: | |
push: | |
branches: | |
- master | |
tags: | |
- "*.*.*" | |
pull_request: | |
branches: | |
- master | |
jobs: | |
Build: | |
runs-on: 'ubuntu-latest' | |
container: 'byjg/php:${{ matrix.php-version }}-cli' | |
strategy: | |
matrix: | |
php-version: | |
- "8.3" | |
- "8.2" | |
- "8.1" | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup test | |
run: | | |
composer install | |
SPEC=swagger php -S 127.0.0.1:8080 tests/rest/app.php & | |
SPEC=openapi php -S 127.0.0.1:8081 tests/rest/app.php & | |
- run: ./vendor/bin/phpunit | |
- run: ./vendor/bin/psalm | |
Documentation: | |
if: github.ref == 'refs/heads/master' | |
needs: Build | |
uses: byjg/byjg.github.io/.github/workflows/add-doc.yaml@master | |
with: | |
folder: php | |
project: ${{ github.event.repository.name }} | |
secrets: inherit | |