Test PHP Generator #76
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 Generator | |
on: | |
pull_request: | |
paths: | |
- 'generator/php/**' | |
- 'api-specifications/**' | |
push: | |
branches: | |
- 'update-oas-**' | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Make gradlew executable | |
run: chmod +x ./gradlew | |
- name: Set up JDK 1.8 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: 8 | |
distribution: temurin | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.9' | |
- name: Set up PHP Composer | |
uses: php-actions/composer@v6 | |
with: | |
version: 2 | |
php_version: 8.0 | |
command: about | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install GitPython | |
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | |
- name: Generate SDKs | |
run: ./gradlew :generator:php:generateClient | |
shell: bash | |
- name: Test SDKs | |
run: python ./scripts/test_sdk.py --language php | |
env: | |
TEST_CLIENT_ID: ${{ secrets.SDK_TEST_CLIENT_ID }} | |
TEST_CLIENT_SECRET: ${{ secrets.SDK_TEST_CLIENT_SECRET }} | |
TEST_APPLICATION_ID: ${{ secrets.SDK_TEST_APPLICATION_ID }} | |
shell: bash |