Remove bin/deploy and deploy-targets.csv superseded by CI #4
This file contains hidden or 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
| # vim: set colorcolumn=: | |
| name: php-tests | |
| on: | |
| push: | |
| pull_request: | |
| workflow_dispatch: | |
| inputs: | |
| php_version: | |
| description: "Specify the PHP version to use (e.g., 8.3)" | |
| required: false | |
| default: '8.3' | |
| env: | |
| PHP_VERSION: ${{ inputs.php_version || '8.3' }} | |
| permissions: | |
| contents: read | |
| jobs: | |
| tests: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Update apt cache | |
| run: sudo apt-get update | |
| - name: Install php ${{ env.PHP_VERSION }} | |
| run: sudo apt-get install php${{ env.PHP_VERSION }}-cli php${{ env.PHP_VERSION }}-mbstring php${{ env.PHP_VERSION }}-xml | |
| - name: Cache Composer packages | |
| id: composer-cache | |
| uses: actions/cache@v4 | |
| with: | |
| path: lib | |
| key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }} | |
| restore-keys: | | |
| ${{ runner.os }}-php- | |
| - name: Install composer/vendor dependencies | |
| run: composer install --prefer-dist --no-progress --ignore-platform-reqs | |
| - name: Run PHPUnit tests | |
| run: lib/bin/phpunit --testdox |