Skip to content

Commit 1a5030b

Browse files
Merge branch 'feat-golang-sdk' into feat-8-add-go-templates
2 parents a8046a8 + 85f73a3 commit 1a5030b

File tree

449 files changed

+16079
-5953
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

449 files changed

+16079
-5953
lines changed

.github/workflows/tests.yml

Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
name: CI Workflow
2+
3+
concurrency:
4+
group: ${{ github.workflow }}-${{ github.ref }}
5+
cancel-in-progress: true
6+
7+
on: [pull_request]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
php-version: ['8.2']
16+
sdk: [
17+
Android5Java17,
18+
Android14Java17,
19+
CLINode16,
20+
CLINode18,
21+
DartBeta,
22+
DartStable,
23+
Deno1193,
24+
Deno1303,
25+
DotNet60,
26+
DotNet80,
27+
FlutterStable,
28+
FlutterBeta,
29+
Go112,
30+
Go118,
31+
KotlinJava8,
32+
KotlinJava11,
33+
KotlinJava17,
34+
Node16,
35+
Node18,
36+
Node20,
37+
PHP74,
38+
PHP80,
39+
Python38,
40+
Python39,
41+
Python310,
42+
Ruby27,
43+
Ruby30,
44+
Ruby31,
45+
AppleSwift56,
46+
Swift56,
47+
WebChromium,
48+
WebNode
49+
]
50+
51+
steps:
52+
- name: Checkout repository
53+
uses: actions/checkout@v4
54+
with:
55+
submodules: recursive
56+
57+
- name: Docker Setup Buildx
58+
uses: docker/[email protected]
59+
60+
- name: Setup PHP with PECL extension
61+
uses: shivammathur/setup-php@v2
62+
with:
63+
php-version: ${{ matrix.php-version }}
64+
extensions: curl
65+
66+
- name: Before Install
67+
run: |
68+
if [ ! -z "${DOCKERHUB_PULL_USERNAME:-}" ]; then
69+
echo "${DOCKERHUB_PULL_PASSWORD}" | docker login --username "${DOCKERHUB_PULL_USERNAME}" --password-stdin
70+
fi
71+
72+
- name: Install
73+
run: |
74+
docker --version
75+
composer install
76+
77+
- name: Lint
78+
if: matrix.sdk == 'Lint'
79+
run: |
80+
composer lint
81+
82+
- name: Run Tests
83+
run: |
84+
composer test tests/${{ matrix.sdk }}Test.php
85+
86+
lint:
87+
runs-on: ubuntu-latest
88+
89+
steps:
90+
- name: Checkout code
91+
uses: actions/checkout@v4
92+
93+
- name: Setup PHP with PECL extension
94+
uses: shivammathur/setup-php@v2
95+
with:
96+
php-version: ${{ matrix.php-version }}
97+
extensions: curl
98+
99+
- name: Install
100+
run: composer install
101+
102+
- name: Lint
103+
run: composer lint

.travis.yml

Lines changed: 0 additions & 79 deletions
This file was deleted.

composer.json

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
"description": "Appwrite PHP library for generating API SDKs for multiple programming languages and platforms",
44
"type": "library",
55
"license": "MIT",
6+
"minimum-stability": "dev",
7+
"prefer-stable": true,
68
"authors": [
79
{
810
"name": "Eldad Fux",
@@ -28,14 +30,15 @@
2830
"ext-curl": "*",
2931
"ext-mbstring": "*",
3032
"ext-json": "*",
31-
"twig/twig": "^3.4.1",
32-
"matthiasmullie/minify": "^1.3.68"
33+
"twig/twig": "v3.8.*",
34+
"matthiasmullie/minify": "1.3.*"
3335
},
3436
"require-dev": {
35-
"phpunit/phpunit": "^9.5.21",
36-
"brianium/paratest": "^6.4",
37-
"squizlabs/php_codesniffer": "^3.6"
37+
"phpunit/phpunit": "10.5.*",
38+
"brianium/paratest": "v7.4.*",
39+
"squizlabs/php_codesniffer": "3.9.*"
3840
},
39-
"minimum-stability": "dev",
40-
"prefer-stable": true
41+
"platform": {
42+
"php": "8.2"
43+
}
4144
}

0 commit comments

Comments
 (0)