mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 00:49:02 +00:00
chore: bump tests
This commit is contained in:
parent
1509aa544d
commit
39490e9819
1 changed files with 18 additions and 16 deletions
34
.github/workflows/tests.yml
vendored
34
.github/workflows/tests.yml
vendored
|
|
@ -16,22 +16,22 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v2
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
- name: Build Appwrite
|
- name: Build Appwrite
|
||||||
uses: docker/build-push-action@v3
|
uses: docker/build-push-action@v6
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
push: false
|
push: false
|
||||||
tags: ${{ env.IMAGE }}
|
tags: ${{ env.IMAGE }}
|
||||||
load: true
|
load: true
|
||||||
cache-from: type=gha
|
cache-from: type=gha,scope=appwrite
|
||||||
cache-to: type=gha,mode=max
|
cache-to: type=gha,mode=max,scope=appwrite
|
||||||
outputs: type=docker,dest=/tmp/${{ env.IMAGE }}.tar
|
outputs: type=docker,dest=/tmp/${{ env.IMAGE }}.tar
|
||||||
build-args: |
|
build-args: |
|
||||||
DEBUG=false
|
DEBUG=false
|
||||||
|
|
@ -39,9 +39,11 @@ jobs:
|
||||||
VERSION=dev
|
VERSION=dev
|
||||||
|
|
||||||
- name: Cache Docker Image
|
- name: Cache Docker Image
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
key: ${{ env.CACHE_KEY }}
|
key: ${{ env.CACHE_KEY }}
|
||||||
|
restore-keys: |
|
||||||
|
appwrite-dev-
|
||||||
path: /tmp/${{ env.IMAGE }}.tar
|
path: /tmp/${{ env.IMAGE }}.tar
|
||||||
|
|
||||||
unit_test:
|
unit_test:
|
||||||
|
|
@ -51,10 +53,10 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: checkout
|
- name: checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Load Cache
|
- name: Load Cache
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
key: ${{ env.CACHE_KEY }}
|
key: ${{ env.CACHE_KEY }}
|
||||||
path: /tmp/${{ env.IMAGE }}.tar
|
path: /tmp/${{ env.IMAGE }}.tar
|
||||||
|
|
@ -81,10 +83,10 @@ jobs:
|
||||||
needs: setup
|
needs: setup
|
||||||
steps:
|
steps:
|
||||||
- name: checkout
|
- name: checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Load Cache
|
- name: Load Cache
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
key: ${{ env.CACHE_KEY }}
|
key: ${{ env.CACHE_KEY }}
|
||||||
path: /tmp/${{ env.IMAGE }}.tar
|
path: /tmp/${{ env.IMAGE }}.tar
|
||||||
|
|
@ -129,10 +131,10 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: checkout
|
- name: checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Load Cache
|
- name: Load Cache
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
key: ${{ env.CACHE_KEY }}
|
key: ${{ env.CACHE_KEY }}
|
||||||
path: /tmp/${{ env.IMAGE }}.tar
|
path: /tmp/${{ env.IMAGE }}.tar
|
||||||
|
|
@ -142,7 +144,7 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
docker load --input /tmp/${{ env.IMAGE }}.tar
|
docker load --input /tmp/${{ env.IMAGE }}.tar
|
||||||
docker compose up -d
|
docker compose up -d
|
||||||
sleep 10
|
sleep 25
|
||||||
|
|
||||||
- name: Run ${{matrix.service}} Tests
|
- name: Run ${{matrix.service}} Tests
|
||||||
run: docker compose exec -T appwrite test /usr/src/code/tests/e2e/Services/${{matrix.service}} --debug
|
run: docker compose exec -T appwrite test /usr/src/code/tests/e2e/Services/${{matrix.service}} --debug
|
||||||
|
|
@ -150,15 +152,15 @@ jobs:
|
||||||
- name: Run ${{matrix.service}} Shared Tables Tests
|
- name: Run ${{matrix.service}} Shared Tables Tests
|
||||||
run: _APP_DATABASE_SHARED_TABLES=database_db_main docker compose exec -T appwrite test /usr/src/code/tests/e2e/Services/${{matrix.service}} --debug
|
run: _APP_DATABASE_SHARED_TABLES=database_db_main docker compose exec -T appwrite test /usr/src/code/tests/e2e/Services/${{matrix.service}} --debug
|
||||||
|
|
||||||
benchamrking:
|
benchmarking:
|
||||||
name: Benchmark
|
name: Benchmark
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: setup
|
needs: setup
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
- name: Load Cache
|
- name: Load Cache
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
key: ${{ env.CACHE_KEY }}
|
key: ${{ env.CACHE_KEY }}
|
||||||
path: /tmp/${{ env.IMAGE }}.tar
|
path: /tmp/${{ env.IMAGE }}.tar
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue