Deprecate some legacy methods #16
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: Test commands | |
on: | |
push: | |
branches: [ 1.x ] | |
pull_request: | |
branches: [ 1.x ] | |
jobs: | |
test: | |
# Build on Monterey and later Ventura (Not public released yet: https://github.com/actions/runner-images) | |
strategy: | |
matrix: | |
os: [macos-12] | |
# php: ['8.3', '8.2', '8.1', '8.0', '7.4', '7.3', '7.2', '7.1'] | |
php: ['8.2'] | |
runs-on: ${{matrix.os}} | |
name: ${{matrix.os}} with ${{matrix.php}} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: '[INSTALL] Install PHP 8.1' | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '8.1' | |
extensions: dom, curl, libxml, mbstring, zip, fileinfo | |
ini-values: error_reporting=E_ALL, max_execution_time=-1, memory_limit=512M | |
tools: composer:v2 | |
coverage: none | |
- name: '[INSTALL] Brew' | |
run: brew cleanup | |
- name: '[INSTALL] Composer install' | |
run: composer install --no-dev --no-interaction --prefer-dist | |
- name: '[INSTALL] Valet install' | |
run: ./valet-pro install | |
- name: '[TEST] Nginx' | |
run: | | |
sudo nginx -t | |
curl 127.0.0.1 | grep "Valet - Not Found" | |
- name: '[TEST] DB commands' | |
run: | | |
./valet-pro db create testci | grep "\"testci\" created successfully" | |
./valet-pro db list | grep "testci" | |
./valet-pro db drop testci -y | grep "\"testci\" dropped successfully" | |
- name: '[TEST] PHP switch' | |
run: | | |
./valet-pro use ${{matrix.php}} | |
php -v | grep ${{matrix.php}} | |
- name: '[TEST] xdebug on and off' | |
run: | | |
./valet-pro xdebug on | |
./valet-pro xdebug off | |
- name: '[TEST] memcache on and off' | |
run: | | |
./valet-pro memcache on | |
./valet-pro memcache off |