Data Import/Export API: Extend import API (#1377) #2789
This file contains hidden or 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: Code Test Suite | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| tests: | |
| runs-on: ubuntu-latest | |
| services: | |
| mysql: | |
| image: mysql:8.4 | |
| env: | |
| MYSQL_DATABASE: mpm_testing | |
| MYSQL_ROOT_PASSWORD: 6QVlQsfsjUbxoaTS | |
| ports: | |
| - 53306:3306 | |
| redis: | |
| image: redis:5 | |
| ports: | |
| - 6379:6379 | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: 8.2 | |
| extensions: mbstring, dom, fileinfo, mysql | |
| coverage: xdebug | |
| - name: Install Composer Dependencies | |
| run: composer install --no-interaction --prefer-dist | |
| working-directory: ./src/backend | |
| - name: Generate autoload files | |
| run: | | |
| OUTPUT=$(composer dump-autoload 2>&1) | |
| echo "$OUTPUT" | |
| if echo "$OUTPUT" | grep -q "does not comply with psr-4 autoloading standard"; then | |
| echo "❌ PSR-4 autoloading violation detected." | |
| exit 1 | |
| fi | |
| working-directory: ./src/backend | |
| - name: Run Migrations Test | |
| run: php artisan --env=testing migrate:fresh | |
| working-directory: ./src/backend | |
| - name: Run Migrations Rollback Test | |
| run: php artisan --env=testing migrate:rollback | |
| working-directory: ./src/backend | |
| - name: Run Tests | |
| run: php artisan test --stop-on-failure | |
| working-directory: ./src/backend | |
| continue-on-error: false |