Skip to content

Commit

Permalink
cleaning up php.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sajed-zarrinpour committed Sep 6, 2024
1 parent 087e46d commit c6ffc4e
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,22 +37,14 @@ jobs:
- name: Install dependencies
run: composer install --prefer-dist --no-progress

# Add a test script to composer.json, for instance: "test": "vendor/bin/phpunit"
# Docs: https://getcomposer.org/doc/articles/scripts.md

# - name: Run test suite
# run: composer run-script test
# - name: Checkout code
# uses: actions/checkout@v2

- name: Start MySQL
run: |
sudo /etc/init.d/mysql start
mysql -e "CREATE DATABASE IF NOT EXISTS $DB_DATABASE;" -u$DB_USER -p$DB_PASSWORD
# Add more steps for testing and other tasks
- name: Run Tests
run: |
pwd
ls -ali
vendor/bin/phpunit ./tests
# Add a test script to composer.json, for instance: "test": "vendor/bin/phpunit"
# Docs: https://getcomposer.org/doc/articles/scripts.md

- name: Run test suite
run: composer run-script test

0 comments on commit c6ffc4e

Please sign in to comment.