Skip to content
Open

Dev #14

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
221 commits
Select commit Hold shift + click to select a range
c701685
Merge branch 'master' into unity-client-sdk
Fellmonkey Jun 28, 2025
d007736
feat: add Unity SDK support to SDK generator
Fellmonkey Jul 3, 2025
3627f77
Refactor Unity SDK file structure and improve upload logic
Fellmonkey Jul 10, 2025
e20f308
Add Unity2021 test integration
Fellmonkey Jul 10, 2025
b9602f7
Merge branch 'master' into unity-client-sdk
Fellmonkey Jul 10, 2025
b17f3f3
Merge branch 'appwrite:master' into unity-client-sdk
Fellmonkey Jul 11, 2025
772d82d
feat: add cookie container support
Fellmonkey Jul 12, 2025
e858581
feat: add ping functionality
Fellmonkey Jul 12, 2025
85fdb6f
feat: add realtime endpoint configuration
Fellmonkey Jul 12, 2025
f657dc0
fix: improve header setting in client
Fellmonkey Jul 12, 2025
8d116c7
feat: add native websocket dependency
Fellmonkey Jul 12, 2025
1dd5a07
feat: complete realtime implementation rewrite
Fellmonkey Jul 12, 2025
9166fbb
test: add comprehensive test coverage
Fellmonkey Jul 12, 2025
977c043
Update Tests.cs
Fellmonkey Jul 12, 2025
4e117ad
fix: header formatting
Fellmonkey Jul 12, 2025
0c59f25
test: remove major delay
Fellmonkey Jul 12, 2025
7b9f36c
refactor api.twig
Fellmonkey Jul 12, 2025
f55cee3
Delete AppwriteClient.cs.twig
Fellmonkey Jul 13, 2025
8116b5d
refactor: remove space
Fellmonkey Jul 13, 2025
2733768
refactor: remove build warnings
Fellmonkey Jul 13, 2025
98f2487
Add raw filter
Fellmonkey Jul 15, 2025
cef5ed5
add utils
Fellmonkey Jul 16, 2025
6881c4a
fix root namespace and ref
Fellmonkey Jul 16, 2025
3d4211f
refactor: editor scipts
Fellmonkey Jul 16, 2025
c2eeaae
Delete AppwriteExampleScript.cs.twig
Fellmonkey Jul 16, 2025
fc78753
refactor config
Fellmonkey Jul 17, 2025
09db3dd
refactor manager
Fellmonkey Jul 17, 2025
9cd0867
new appwrite example
Fellmonkey Jul 17, 2025
bd3c56b
remove AppwriteClient template
Fellmonkey Jul 17, 2025
e429cb6
new structure project
Fellmonkey Jul 17, 2025
ee033d0
remove empty file
Fellmonkey Jul 17, 2025
686ac66
new depend in tests.asmdef
Fellmonkey Jul 17, 2025
fb7c149
Update package.json.twig
Fellmonkey Jul 17, 2025
8e53b67
fix lint
Fellmonkey Jul 17, 2025
aba236c
test behavior
Fellmonkey Jul 17, 2025
90bbad5
return all include platforms
Fellmonkey Jul 17, 2025
24e3f27
Update Unity.php
Fellmonkey Jul 17, 2025
a34c613
Merge pull request #1 from Fellmonkey/dev
Fellmonkey Jul 17, 2025
40f771a
Add conditional UniTask support for Unity templates
Fellmonkey Jul 18, 2025
5486c68
Add version define for UniTask in asmdef
Fellmonkey Jul 18, 2025
803ba98
Merge pull request #2 from Fellmonkey/dev
Fellmonkey Jul 18, 2025
7bc47f4
Update Realtime.cs.twig
Fellmonkey Jul 20, 2025
dd432e6
Add service selection and security warnings to config
Fellmonkey Jul 20, 2025
a384f22
Restrict QuickSetup method to Unity Editor
Fellmonkey Jul 20, 2025
a6746b0
Add dynamic service initialization to AppwriteManager
Fellmonkey Jul 20, 2025
4ddc170
Refactor Realtime WebSocket handling and models
Fellmonkey Jul 20, 2025
75d8a97
Merge pull request #3 from Fellmonkey/dev
Fellmonkey Jul 20, 2025
adae0a5
Merge branch 'master' into dev
Fellmonkey Jul 22, 2025
b43999d
add deprecation handling
Fellmonkey Jul 22, 2025
3681fa6
Merge pull request #4 from Fellmonkey/dev
Fellmonkey Jul 22, 2025
2648eba
Merge branch 'master' into unity-client-sdk
Fellmonkey Jul 24, 2025
b77042e
remove empty-line from Tests.cs
Fellmonkey Jul 24, 2025
1cad697
Merge branch 'appwrite:master' into unity-client-sdk
Fellmonkey Jul 28, 2025
0947b6d
Rename API key to dev key in Unity templates
Fellmonkey Jul 28, 2025
4761370
Update Unity package template description
Fellmonkey Jul 28, 2025
0410b37
pass enum value as string in API params
Fellmonkey Jul 28, 2025
e5c985d
Merge pull request #5 from Fellmonkey/dev
Fellmonkey Jul 28, 2025
d8f85b1
confused
Fellmonkey Jul 28, 2025
f319764
Merge pull request #6 from Fellmonkey/dev
Fellmonkey Jul 28, 2025
c100ff6
Update service enum and default endpoints in config
Fellmonkey Aug 1, 2025
b0cf526
Enhance CookieContainer with persistence and parsing
Fellmonkey Aug 1, 2025
29285ee
Merge pull request #7 from Fellmonkey/dev
Fellmonkey Aug 1, 2025
233f5ca
Add maxAge and createdAt to Cookie class
Fellmonkey Aug 1, 2025
6537fd1
Add persistent session and JWT storage to Client
Fellmonkey Aug 1, 2025
3eda68f
Merge pull request #8 from Fellmonkey/dev
Fellmonkey Aug 1, 2025
0a48f7a
Refactor object inference in JSON converter
Fellmonkey Aug 2, 2025
b44f0b1
Refactor model deserialization logic in C# template
Fellmonkey Aug 2, 2025
1ff1db3
Add OAuth2 and cookie support for Unity SDK
Fellmonkey Aug 9, 2025
5b4ff35
remove extra space
Fellmonkey Aug 9, 2025
588dab8
Add new query methods and tests
Fellmonkey Aug 9, 2025
238e609
remove new tests
Fellmonkey Aug 9, 2025
d7ae141
Update Unity service template and remove OAuth2 test
Fellmonkey Aug 9, 2025
be984aa
Remove debug log for Set-Cookie header
Fellmonkey Aug 9, 2025
81100ac
Merge pull request #10 from Fellmonkey/dev
Fellmonkey Aug 9, 2025
4c6b9f7
Handle optional properties in model From method
Fellmonkey Aug 9, 2025
eea9988
Merge branch 'appwrite:master' into unity-client-sdk
Fellmonkey Aug 9, 2025
ef145bc
Add tests for new Query methods in Unity
Fellmonkey Aug 9, 2025
7c42ea3
tired
Fellmonkey Aug 9, 2025
ba713d6
Merge pull request #11 from Fellmonkey/dev
Fellmonkey Aug 9, 2025
9a3e14d
Revamp Unity SDK README and example documentation
Fellmonkey Aug 10, 2025
2fabd02
Merge branch 'dev' into unity-client-sdk
Fellmonkey Aug 10, 2025
fa14d61
normalize domain value
Fellmonkey Aug 10, 2025
c5d7785
Merge pull request #12 from Fellmonkey/dev
Fellmonkey Aug 10, 2025
5ea6a7a
Refactor Unity SDK to inherit from DotNet and reuse templates
Fellmonkey Aug 14, 2025
7a37aa8
Merge pull request #13 from Fellmonkey/dev
Fellmonkey Aug 14, 2025
b071cbc
synchronization with the Unity template
Fellmonkey Aug 14, 2025
6e704e3
fix: correct import statement for Models in TypeScript template
mdex-geek Sep 8, 2025
1035c1d
Add UNI_TASK define to WebAuthComponent
Fellmonkey Sep 12, 2025
8108ed4
Refactor Unity setup assistant for async reliability
Fellmonkey Sep 12, 2025
b6a0eb5
Merge branch 'appwrite:master' into unity-client-sdk
Fellmonkey Sep 12, 2025
02707a1
Refactor async method usage and update initialization
Fellmonkey Sep 12, 2025
f483254
more
Fellmonkey Sep 15, 2025
888a7c6
Refactor Dart template to use AttributeType constants
Fellmonkey Sep 18, 2025
89bb185
Always use sortedAttributes in Dart type generation
Fellmonkey Sep 18, 2025
90a1606
feat: add enum support to response models in ts
ChiragAgg5k Sep 22, 2025
d07ab71
Add orderRandom query
abnegate Sep 23, 2025
72c6d7a
Apply suggestions from code review
abnegate Sep 23, 2025
3583fa6
Merge pull request #1199 from appwrite/feat-order-random
abnegate Sep 23, 2025
cec90d7
proper enum support
ChiragAgg5k Sep 23, 2025
7ee11c9
update react native
ChiragAgg5k Sep 23, 2025
01e3a97
update to use enums in android and kotlin
ChiragAgg5k Sep 23, 2025
d413ad8
fix: max length issue
ChiragAgg5k Sep 23, 2025
4728ccd
fix: print sdk warnings to stderr instead of stdout
ChiragAgg5k Sep 23, 2025
6bc6c6d
Merge pull request #1200 from appwrite/pla-3492
ChiragAgg5k Sep 23, 2025
85db6f4
add swift support
ChiragAgg5k Sep 25, 2025
66adb5a
fix: dart
ChiragAgg5k Sep 25, 2025
ee724c1
fix: tests for dart
ChiragAgg5k Sep 25, 2025
8d781b0
fix: import
ChiragAgg5k Sep 25, 2025
d007352
fix: enum in apple
ChiragAgg5k Sep 25, 2025
8c5cf9f
fix: android
ChiragAgg5k Sep 25, 2025
62827f4
composer
ChiragAgg5k Sep 25, 2025
8bc6991
remove codeable
ChiragAgg5k Sep 25, 2025
bad2096
Merge pull request #1194 from mdex-geek/ts-import-rule
ChiragAgg5k Sep 25, 2025
d69be8d
Merge pull request #1197 from Fellmonkey/CLI-Dart-model-generation-fixes
ChiragAgg5k Sep 25, 2025
9223f82
enum support for csharp
ChiragAgg5k Sep 25, 2025
c21260c
remove deno
ChiragAgg5k Sep 25, 2025
830aeb4
remove import
ChiragAgg5k Sep 25, 2025
09cbde1
fix: swift
ChiragAgg5k Sep 25, 2025
0a1d5e3
fix: format
ChiragAgg5k Sep 25, 2025
5341746
fix: reviews
ChiragAgg5k Sep 25, 2025
e9586d2
Refactor model parsing for nullable and array properties
Fellmonkey Sep 25, 2025
5ad9a4b
Skip null parameters in request parameter loop
Fellmonkey Sep 25, 2025
783144b
fix: imports
ChiragAgg5k Sep 26, 2025
ff36fa1
add mock status
ChiragAgg5k Sep 26, 2025
c7344e9
use requestenums name
ChiragAgg5k Sep 26, 2025
ca726d5
merge enums
ChiragAgg5k Sep 26, 2025
27e484a
fix: optional handling in swift
ChiragAgg5k Sep 26, 2025
f9ad8d8
fix: optional handling in dart
ChiragAgg5k Sep 26, 2025
0417b7b
fix: python, remove deno
ChiragAgg5k Sep 26, 2025
54cd185
fix: node
ChiragAgg5k Sep 26, 2025
80b76ff
Trigger Build
ChiragAgg5k Sep 26, 2025
c5884fb
Merge branch 'master' into feat-enum-support
ChiragAgg5k Sep 26, 2025
8860259
Merge branch 'appwrite:master' into unity-client-sdk
Fellmonkey Sep 26, 2025
cc44071
fix: row permissions and security sync
ChiragAgg5k Sep 26, 2025
effa98d
fix: rowsecurity pull
ChiragAgg5k Sep 26, 2025
5dadda0
remove unnecesary fallback
ChiragAgg5k Sep 26, 2025
a304270
Merge pull request #1201 from appwrite/fix-row-permissions-sync
ChiragAgg5k Sep 26, 2025
953600d
Refactor model class name generation in template
Fellmonkey Sep 28, 2025
3ab9c19
chore (breaking): update dart's fromMap constructor to accept use 'da…
ChiragAgg5k Sep 29, 2025
d593e78
fallback to just map
ChiragAgg5k Sep 29, 2025
d71fdd3
make same change across all sdks
ChiragAgg5k Sep 29, 2025
fc6d378
Merge pull request #1202 from appwrite/fix-dart-any-model
ChiragAgg5k Sep 29, 2025
81e960a
add model support to ruby
ChiragAgg5k Sep 29, 2025
035ee8d
only validate if its not nil
ChiragAgg5k Sep 29, 2025
34e8577
trigger ci
ChiragAgg5k Sep 29, 2025
8b5b334
trigger ci
ChiragAgg5k Sep 29, 2025
be203d7
fix: optional issue with enums in android
ChiragAgg5k Sep 30, 2025
0ab8ddc
fix: resource name from attributes to columns for tablesdb indexes in…
ChiragAgg5k Sep 30, 2025
83f9ae8
fix: error when pushing columns with relationships
ChiragAgg5k Sep 30, 2025
4852ce6
Merge pull request #1204 from appwrite/fix-missing-relatedCollectionId
ChiragAgg5k Sep 30, 2025
14617d4
Merge pull request #1203 from appwrite/fix-key-column
ChiragAgg5k Oct 1, 2025
07a7d62
Merge pull request #1198 from appwrite/feat-enum-support
ChiragAgg5k Oct 1, 2025
3e736b7
fix: dotnet template issues
ChiragAgg5k Oct 1, 2025
112022a
fix: escape
ChiragAgg5k Oct 1, 2025
e1ca749
Merge pull request #1205 from appwrite/fix-dotnet-issues
ChiragAgg5k Oct 1, 2025
d9f6d71
Merge branch 'master' into improve-json-serialization
Fellmonkey Oct 1, 2025
cc2cd62
Add parse_value Twig function for DotNet models
Fellmonkey Oct 1, 2025
ebbad72
make generated array mappings null-safe
Fellmonkey Oct 1, 2025
3da9477
Add SDK build validation workflow for real spec files
ChiragAgg5k Oct 3, 2025
a166f4b
Allow linter warnings in Flutter and Dart analysis
ChiragAgg5k Oct 3, 2025
6a8b000
Update workflow name to reflect Appwrite spec validation
ChiragAgg5k Oct 3, 2025
305772a
Remove duplicate Appwrite from job names
ChiragAgg5k Oct 3, 2025
ff2545a
lint
Fellmonkey Oct 3, 2025
aa2ea30
Use example.php with arguments instead of separate generate-sdk.php
ChiragAgg5k Oct 3, 2025
3bf00f6
Fix Swift setup using direct installation instead of broken action
ChiragAgg5k Oct 3, 2025
6a4b867
Fix Flutter and Dart analyze flags
ChiragAgg5k Oct 3, 2025
bb1bb44
fix flutter
ChiragAgg5k Oct 3, 2025
e727b00
Fix Swift and Apple Package.swift missing AppwriteEnums dependency
ChiragAgg5k Oct 3, 2025
3211bb8
fix: to use dart analyze
ChiragAgg5k Oct 3, 2025
9758a73
try fix
ChiragAgg5k Oct 3, 2025
efdce31
Skip lint checks in Android/Kotlin build validation
ChiragAgg5k Oct 3, 2025
9205e71
fix: to not use lint in kotlin
ChiragAgg5k Oct 3, 2025
23c616d
Merge branch 'appwrite:master' into dev
Fellmonkey Oct 3, 2025
865847c
Merge branch 'unity-client-sdk' into dev
Fellmonkey Oct 3, 2025
fa19212
fix: test
ChiragAgg5k Oct 3, 2025
faad585
Import Enums namespace conditionally in model template
Fellmonkey Oct 3, 2025
ba72c1c
Refactor: extract SDK configuration into helper function
ChiragAgg5k Oct 4, 2025
ace7691
cleanup more
ChiragAgg5k Oct 4, 2025
e0d00a6
small fixes
ChiragAgg5k Oct 4, 2025
aa9db05
overide namespace
ChiragAgg5k Oct 4, 2025
56a4fd6
update more
ChiragAgg5k Oct 4, 2025
c30701f
Merge pull request #1206 from appwrite/feat-sdk-build-validation-work…
ChiragAgg5k Oct 4, 2025
995ba87
Merge branch 'master' into improve-json-serialization
ChiragAgg5k Oct 4, 2025
049b7c0
Fix Flutter constant naming: CHUNK_SIZE to chunkSize
ChiragAgg5k Oct 4, 2025
16c629e
Add @override annotation to toMap method in Dart models
ChiragAgg5k Oct 4, 2025
f442a6c
Fix typo: cunked -> chunked
ChiragAgg5k Oct 4, 2025
385f804
Fix typo in Dart template: cunked -> chunked
ChiragAgg5k Oct 4, 2025
6a38a32
Fix constant naming in Dart templates: CHUNK_SIZE to chunkSize
ChiragAgg5k Oct 4, 2025
722b3a1
Use string interpolation instead of concatenation in Dart/Flutter tem…
ChiragAgg5k Oct 4, 2025
9c9865c
Merge pull request #1212 from appwrite/fix-flutter-string-interpolation
abnegate Oct 6, 2025
10e7d6c
Merge pull request #1209 from appwrite/fix-flutter-override-annotatio…
abnegate Oct 6, 2025
ea7ebb0
Merge pull request #1208 from appwrite/fix-flutter-chunk-size-constan…
abnegate Oct 6, 2025
19e8133
make go changelog format consistent with other sdks
ChiragAgg5k Oct 8, 2025
6a75a4d
Merge pull request #1213 from appwrite/fix-go-changelog
ChiragAgg5k Oct 8, 2025
ff6eb83
chore: ensure the full analysis options are used when formatting
stnguyen90 Oct 8, 2025
e95cd68
chore: fix dart and flutter analysis errors
stnguyen90 Oct 9, 2025
0721992
Merge pull request #1214 from appwrite/chore-improve-dart-flutter-pub…
abnegate Oct 9, 2025
10764ee
feat: add `DeprecationWarning` decorator support python lang
amustaque97 Oct 9, 2025
5585eb9
feat: add finally block to reset filter
amustaque97 Oct 9, 2025
d1f9097
Merge pull request #1215 from appwrite/PLA-3382
amustaque97 Oct 9, 2025
6a5378f
fix: handle Object[] in .NET array deserialization
ChiragAgg5k Oct 13, 2025
67972c5
refactor: simplify type handling for array deserialization
ChiragAgg5k Oct 13, 2025
aac6cc3
fix: method name
ChiragAgg5k Oct 13, 2025
1ee0540
fix: issue 3
ChiragAgg5k Oct 13, 2025
951a27a
fix: issue 4
ChiragAgg5k Oct 13, 2025
0b9d6d6
Update templates/dotnet/Package/Extensions/Extensions.cs.twig
ChiragAgg5k Oct 13, 2025
a20b20c
Merge pull request #1218 from appwrite/fix-dotnet-array-deserialization
ChiragAgg5k Oct 13, 2025
10993e5
Refactor array handling in DotNet code generation
Fellmonkey Oct 13, 2025
76ce99c
Merge branch 'master' into improve-json-serialization
Fellmonkey Oct 13, 2025
8dfc5c5
Add .NET SDK test templates and test generation
Fellmonkey Oct 19, 2025
a71ae71
Add test execution step to SDK build workflow
Fellmonkey Oct 19, 2025
11caff6
Merge branch 'tests-dotnet' into dev
Fellmonkey Oct 20, 2025
f7ce30b
Create cgch.txt
Fellmonkey Oct 20, 2025
9725af6
Add new project configuration to Package.sln
Fellmonkey Oct 20, 2025
1905a3b
Update Package.sln
Fellmonkey Oct 20, 2025
e0e8c9a
Update InputFileTests.cs.twig
Fellmonkey Oct 20, 2025
e9cb8f7
Fix InputFile filename assertion for OS differences
Fellmonkey Oct 20, 2025
be1bc73
Avoid C# 12 collection expressions for broader compatibility.
Fellmonkey Oct 20, 2025
11427a9
Remove redundant CanConvert test for non-enum type
Fellmonkey Oct 20, 2025
8bfe93e
spec.title
Fellmonkey Oct 20, 2025
e9e77ae
Merge branch 'tests-dotnet' into dev
Fellmonkey Oct 20, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
241 changes: 241 additions & 0 deletions .github/workflows/sdk-build-validation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,241 @@
name: Appwrite SDK Build Validation

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

on: [pull_request]

jobs:
generate-and-build:
name: ${{ matrix.sdk }} (${{ matrix.platform }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
# Client SDKs
- sdk: web
platform: client

- sdk: flutter
platform: client

- sdk: apple
platform: client

- sdk: android
platform: client

- sdk: react-native
platform: client

# Server SDKs
- sdk: node
platform: server

- sdk: php
platform: server

- sdk: python
platform: server

- sdk: ruby
platform: server

- sdk: dart
platform: server

- sdk: go
platform: server

- sdk: swift
platform: server

- sdk: dotnet
platform: server

- sdk: kotlin
platform: server

# Console SDKs
- sdk: cli
platform: console

steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: recursive

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.3'
extensions: curl

- name: Install Composer Dependencies
run: composer install

- name: Generate SDK for ${{ matrix.sdk }}
run: php example.php ${{ matrix.sdk }} ${{ matrix.platform }}

# Language-specific setup
- name: Setup Node.js
if: matrix.sdk == 'web' || matrix.sdk == 'node' || matrix.sdk == 'cli' || matrix.sdk == 'react-native'
uses: actions/setup-node@v4
with:
node-version: '20'

- name: Setup Flutter
if: matrix.sdk == 'flutter'
uses: subosito/flutter-action@v2
with:
channel: 'stable'

- name: Setup Swift
if: matrix.sdk == 'apple' || matrix.sdk == 'swift'
run: |
sudo apt-get update
sudo apt-get install -y wget
wget https://download.swift.org/swift-5.9.2-release/ubuntu2204/swift-5.9.2-RELEASE/swift-5.9.2-RELEASE-ubuntu22.04.tar.gz
tar xzf swift-5.9.2-RELEASE-ubuntu22.04.tar.gz
sudo mv swift-5.9.2-RELEASE-ubuntu22.04 /usr/share/swift
echo "/usr/share/swift/usr/bin" >> $GITHUB_PATH

- name: Setup Java
if: matrix.sdk == 'android' || matrix.sdk == 'kotlin'
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'

- name: Setup Python
if: matrix.sdk == 'python'
uses: actions/setup-python@v5
with:
python-version: '3.11'

- name: Setup Ruby
if: matrix.sdk == 'ruby'
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.1'

- name: Setup Dart
if: matrix.sdk == 'dart'
uses: dart-lang/setup-dart@v1
with:
sdk: 'stable'

- name: Setup Go
if: matrix.sdk == 'go'
uses: actions/setup-go@v5
with:
go-version: '1.21'

- name: Setup .NET
if: matrix.sdk == 'dotnet'
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'

- name: Build SDK
working-directory: examples/${{ matrix.sdk }}
run: |
case "${{ matrix.sdk }}" in
web|node)
npm install
npm run build
;;
cli)
npm install
npm run linux-x64
;;
react-native)
npm install
npm run build || echo "No build script, checking syntax only"
;;
flutter)
flutter pub get
dart analyze --no-fatal-warnings
;;
apple|swift)
swift build
;;
android)
chmod +x ./gradlew || true
./gradlew build -x lint
;;
kotlin)
chmod +x ./gradlew || true
./gradlew build
;;
php)
composer install
;;
python)
pip install -e .
python -m compileall appwrite/
;;
ruby)
bundle install
;;
dart)
dart pub get
dart analyze --no-fatal-warnings
;;
go)
go mod tidy || true
go build ./...
;;
dotnet)
dotnet build
;;
*)
echo "Unknown SDK: ${{ matrix.sdk }}"
exit 1
;;
esac

- name: Run Tests
working-directory: examples/${{ matrix.sdk }}
run: |
case "${{ matrix.sdk }}" in
web|node|cli|react-native)
npm test || echo "No tests available"
;;
flutter)
flutter test || echo "No tests available"
;;
apple|swift)
swift test || echo "No tests available"
;;
android)
./gradlew test || echo "No tests available"
;;
kotlin)
./gradlew test || echo "No tests available"
;;
php)
vendor/bin/phpunit || echo "No tests available"
;;
python)
python -m pytest || echo "No tests available"
;;
ruby)
bundle exec rake test || bundle exec rspec || echo "No tests available"
;;
dart)
dart test || echo "No tests available"
;;
go)
go test ./... || echo "No tests available"
;;
dotnet)
dotnet test || echo "No tests available"
;;
*)
echo "No tests for SDK: ${{ matrix.sdk }}"
;;
esac
6 changes: 4 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ concurrency:

on: [pull_request]

env:
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}

jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -20,8 +23,6 @@ jobs:
CLINode18,
DartBeta,
DartStable,
Deno1193,
Deno1303,
DotNet60,
DotNet80,
DotNet90,
Expand All @@ -47,6 +48,7 @@ jobs:
Ruby31,
AppleSwift56,
Swift56,
Unity2021,
WebChromium,
WebNode
]
Expand Down
Empty file added cgch.txt
Empty file.
Loading
Loading