PHP has no __equals method. #29
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 PHP | |
on: | |
push: | |
paths: | |
- 'PHP/**' | |
- '.github/workflows/PHP.yml' | |
pull_request: | |
paths: | |
- 'PHP/**' | |
- '.github/workflows/PHP.yml' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
DB_USER: root | |
DB_OLD_PASSWORD: root | |
DB_PASSWORD: mysql | |
steps: | |
- name: Check out the repo | |
uses: actions/checkout@v3 | |
- name: Start MYSQL and import DB | |
run: | | |
sudo systemctl start mysql | |
mysqladmin --user=${{ env.DB_USER }} --password=${{ env.DB_OLD_PASSWORD }} password ${{ env.DB_PASSWORD }} | |
mysql -u${{ env.DB_USER }} -p${{ env.DB_PASSWORD }} < ${GITHUB_WORKSPACE}/build/Database/initDatabase.sql | |
mysql -u${{ env.DB_USER }} -p${{ env.DB_PASSWORD }} -e "ALTER USER 'store'@'localhost' IDENTIFIED WITH mysql_native_password BY '123456'" | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: 7.3 | |
- name: Set up dependencies | |
working-directory: PHP | |
run: composer install | |
- name: Test | |
working-directory: PHP | |
run: ./vendor/bin/phpunit --exclude-group slow |