mirror of
https://github.com/appwrite/appwrite
synced 2026-05-24 09:28:40 +00:00
feat: test upload artifact
This commit is contained in:
parent
cf030457e0
commit
2ed6327c1e
1 changed files with 37 additions and 6 deletions
43
.github/workflows/tests.yml
vendored
43
.github/workflows/tests.yml
vendored
|
|
@ -48,11 +48,11 @@ jobs:
|
||||||
TESTING=true
|
TESTING=true
|
||||||
VERSION=dev
|
VERSION=dev
|
||||||
|
|
||||||
- name: Cache Docker Image
|
# - name: Cache Docker Image
|
||||||
uses: actions/cache@v3
|
# uses: actions/cache@v3
|
||||||
with:
|
# with:
|
||||||
key: ${{ env.TAG }}
|
# key: ${{ env.TAG }}
|
||||||
path: /tmp/${{ env.TAG }}.tar
|
# path: /tmp/${{ env.TAG }}.tar
|
||||||
|
|
||||||
# - name: Upload Docker Image
|
# - name: Upload Docker Image
|
||||||
# uses: actions/upload-artifact@v3
|
# uses: actions/upload-artifact@v3
|
||||||
|
|
@ -78,7 +78,7 @@ jobs:
|
||||||
# name: ${{ env.TAG }}
|
# name: ${{ env.TAG }}
|
||||||
# path: /tmp
|
# path: /tmp
|
||||||
|
|
||||||
- name: Get Cached Docker Image
|
- name: Load Cache
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
key: ${{ env.TAG }}
|
key: ${{ env.TAG }}
|
||||||
|
|
@ -104,6 +104,37 @@ jobs:
|
||||||
run: docker compose exec appwrite test /usr/src/code/tests/unit
|
run: docker compose exec appwrite test /usr/src/code/tests/unit
|
||||||
|
|
||||||
|
|
||||||
|
accounts_test:
|
||||||
|
name: Accounts Test
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: setup
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
fetch-depth: 1
|
||||||
|
submodules: recursive
|
||||||
|
|
||||||
|
- name: Load Cache
|
||||||
|
uses: actions/cache@v3
|
||||||
|
with:
|
||||||
|
key: ${{ env.TAG }}
|
||||||
|
path: /tmp/${{ env.TAG }}.tar
|
||||||
|
|
||||||
|
- name: Load Docker image
|
||||||
|
run: |
|
||||||
|
docker load --input /tmp/${{ env.TAG }}.tar
|
||||||
|
docker image ls -a
|
||||||
|
|
||||||
|
- name: Start Appwrite
|
||||||
|
run: |
|
||||||
|
docker compose up -d
|
||||||
|
sleep 10
|
||||||
|
|
||||||
|
- name: Run Accounts Tests
|
||||||
|
run: docker compose exec -T appwrite test /usr/src/code/tests/e2e/Services/Account --debug
|
||||||
|
|
||||||
# e2e_test:
|
# e2e_test:
|
||||||
# name: E2E Test
|
# name: E2E Test
|
||||||
# runs-on: ubuntu-latest
|
# runs-on: ubuntu-latest
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue