-
Notifications
You must be signed in to change notification settings - Fork 4
53 lines (43 loc) · 1.27 KB
/
test_php.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Test PHP Generator
on:
pull_request:
paths:
- 'generator/php/**'
- 'api-specifications/**'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Make gradlew executable
run: chmod +x ./gradlew
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Set up Python
uses: actions/setup-python@v2
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