Merge pull request #8772 from appwrite/fix-cache-docker

fix: cache docker
This commit is contained in:
Christy Jacob 2024-10-09 19:30:48 +04:00 committed by GitHub
commit c7a0e26439
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View file

@ -30,8 +30,8 @@ jobs:
push: false
tags: ${{ env.IMAGE }}
load: true
cache-from: type=gha,scope=appwrite
cache-to: type=gha,mode=max,scope=appwrite
cache-from: type=gha
cache-to: type=gha,mode=max
outputs: type=docker,dest=/tmp/${{ env.IMAGE }}.tar
build-args: |
DEBUG=false
@ -42,8 +42,6 @@ jobs:
uses: actions/cache@v4
with:
key: ${{ env.CACHE_KEY }}
restore-keys: |
appwrite-dev-
path: /tmp/${{ env.IMAGE }}.tar
unit_test:

View file

@ -258,12 +258,14 @@ class FunctionsCustomClientTest extends Scope
'x-appwrite-user-id' => "OVERRIDDEN",
'x-appwrite-user-jwt' => "OVERRIDDEN",
]);
$output = json_decode($execution['body']['responseBody'], true);
$this->assertNotEquals('OVERRIDDEN', $output['APPWRITE_FUNCTION_JWT']);
$this->assertNotEquals('OVERRIDDEN', $output['APPWRITE_FUNCTION_EVENT']);
$this->assertNotEquals('OVERRIDDEN', $output['APPWRITE_FUNCTION_TRIGGER']);
$this->assertNotEquals('OVERRIDDEN', $output['APPWRITE_FUNCTION_USER_ID']);
$this->cleanupFunction($functionId);
}