Revert "Add PHP 7.0 and 7.1 to CI configuration" #262
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: Continuous Integration | |
on: | |
push: | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
run: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
operating-system: | |
- ubuntu-latest | |
- windows-latest | |
php-version: | |
- '5.5' | |
- '5.6' | |
- '7.2' | |
- '7.3' | |
- '7.4' | |
- '8.0' | |
- '8.1' | |
- '8.2' | |
- '8.3' | |
steps: | |
- name: Setup PHP ${{ matrix.php-version }} | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-version }} | |
- name: Get composer cache directory | |
id: composer-cache | |
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT | |
- name: Cache dependencies | |
uses: actions/cache@v3 | |
with: | |
path: ${{ steps.composer-cache.outputs.dir }} | |
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} | |
restore-keys: ${{ runner.os }}-composer- | |
- name: Create Project (5.x) | |
if: contains(matrix.php-version, '5.') | |
run: | | |
composer create-project -n bear/skeleton app | |
- name: Create Project (7.x) | |
if: contains(matrix.php-version, '7.') | |
run: | | |
composer create-project -n bear/skeleton app --no-install | |
- name: Create Project (7.2) | |
if: contains(matrix.php-version, '7.2') | |
run: | | |
cd app | |
composer config --no-plugins allow-plugins.dealerdirect/phpcodesniffer-composer-installer true | |
- name: Create Project (7.x) | |
if: contains(matrix.php-version, '7.') | |
run: | | |
cd app | |
composer install -n | |
- name: Create Project (8.x) | |
continue-on-error: true | |
if: contains(matrix.php-version, '8.') | |
run: composer create-project -n bear/skeleton app | |
- name: List files | |
run: ls -lR; | |
- name: Invoke Request (bootstrap) | |
if: contains(matrix.php-version, '5.') | |
run: php ./app/bootstrap/web.php get / | |
- name: Invoke Request (bin) | |
if: contains(matrix.php-version, '7.') | |
run: php ./app/bin/page.php get / | |
- name: Run test suite | |
run: ./app/vendor/bin/phpunit -c app/phpunit.xml.dist |