Skip to content

chore: drop support for PHP 7 #37

chore: drop support for PHP 7

chore: drop support for PHP 7 #37

Workflow file for this run

name: UpCloud php api test
on:
push:
branches:
- main
pull_request:
jobs:
Test:
strategy:
matrix:
os-php-versions: [
{ os: ubuntu-latest, php: 8.0 },
{ os: ubuntu-latest, php: 8.1 },
{ os: ubuntu-latest, php: 8.2 },
]
runs-on: ${{ matrix.os-php-versions.os }}
steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.os-php-versions.php }}
- uses: actions/checkout@v2
- name: Validate composer.json and composer.lock
run: composer validate
- name: Install dependencies
if: steps.composer-cache.outputs.cache-hit != 'true'
run: composer install --prefer-dist --no-progress --no-suggest
- name: run unit tests
run: vendor/bin/phpunit
env:
xdebug.max_nesting_level: 512
UPCLOUD_API_TEST_USER: ${{ secrets.UPCLOUD_API_TEST_USER }}
UPCLOUD_API_TEST_PASSWORD: ${{ secrets.UPCLOUD_API_TEST_PASSWORD }}
test-with-laravel:
name: Test install with laravel
strategy:
matrix:
laravel-version:
- 9
- 10
runs-on: ubuntu-latest
steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.2
- uses: actions/checkout@v2
- name: Test package can be required into laravel project
run: |
./test/test-install-with-laravel.sh ${{ matrix.laravel-version }}