Bump twig/twig from 3.9.3 to 3.11.2 #10
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: PHP CI/CD | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '8.3' | |
extensions: mbstring, intl, mysqli | |
- name: Install MySQL server | |
run: sudo apt-get install -y mysql-server | |
- name: Start MySQL service | |
run: sudo service mysql start | |
- name: Create .env file | |
run: cp .env.example .env | |
- name: Install Composer dependencies | |
run: composer install --no-progress --no-suggest --prefer-dist | |
- name: Start PHP server | |
run: php -S localhost:8000 -t www & | |
- name: Run curl request on main page | |
run: curl -f http://localhost:8000 |