Port Java to PHP using ChatGPT. #1
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 | |
steps: | |
- name: Check out the repo | |
uses: actions/checkout@v3 | |
- 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 |