Skip to content

Commit e95ffaa

Browse files
Merge branch 'appwrite:master' into feat-87-hint-where-to-run-init-and-deploy-command
2 parents ff6901f + ad80d80 commit e95ffaa

File tree

323 files changed

+11189
-4336
lines changed

Some content is hidden

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

323 files changed

+11189
-4336
lines changed

.github/workflows/tests.yml

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
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: [Android5Java17, Android14Java17, CLINode16, CLINode18, DartBeta, DartStable, Deno1193, Deno1303, DotNet60, DotNet70, FlutterStable, FlutterBeta, Go112, Go118, KotlinJava8, KotlinJava11, KotlinJava17, Node16, Node18, Node20, PHP74, PHP80, Python38, Python39, Python310, Ruby27, Ruby30, Ruby31, AppleSwift56, Swift56, WebChromium, WebNode]
17+
18+
steps:
19+
- name: Checkout repository
20+
uses: actions/checkout@v4
21+
with:
22+
submodules: recursive
23+
24+
- name: Docker Setup Buildx
25+
uses: docker/setup-buildx-action@v3.0.0
26+
27+
- name: Setup PHP with PECL extension
28+
uses: shivammathur/setup-php@v2
29+
with:
30+
php-version: ${{ matrix.php-version }}
31+
extensions: curl
32+
33+
- name: Before Install
34+
run: |
35+
if [ ! -z "${DOCKERHUB_PULL_USERNAME:-}" ]; then
36+
echo "${DOCKERHUB_PULL_PASSWORD}" | docker login --username "${DOCKERHUB_PULL_USERNAME}" --password-stdin
37+
fi
38+
39+
- name: Install
40+
run: |
41+
docker --version
42+
composer install
43+
44+
- name: Lint
45+
if: matrix.sdk == 'Lint'
46+
run: |
47+
composer lint
48+
49+
- name: Run Tests
50+
run: |
51+
composer test tests/${{ matrix.sdk }}Test.php
52+
53+
lint:
54+
runs-on: ubuntu-latest
55+
56+
steps:
57+
- name: Checkout code
58+
uses: actions/checkout@v4
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: Install
67+
run: composer install
68+
69+
- name: Lint
70+
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)