Update Secrets.yml #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 Build and Test | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
# Step 1: Checkout the repository | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
# Step 2: Set up PHP environment | |
- name: Set up PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '8.2' # Specify your PHP version here | |
extensions: mbstring, intl, curl, xml # Optional PHP extensions you may need | |
coverage: xdebug | |
# Step 3: Install Composer (if not already installed by setup-php) | |
- name: Install Composer | |
run: | | |
curl -sS https://getcomposer.org/installer | php | |
mv composer.phar /usr/local/bin/composer | |
# Step 4: Install dependencies | |
- name: Install dependencies | |
run: composer install --prefer-dist --no-interaction | |
# Step 5: Show list of installed dependencies | |
- name: List installed dependencies | |
run: composer show |