mirror of
https://github.com/appwrite/appwrite
synced 2026-05-06 06:48:22 +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
|
||||
VERSION=dev
|
||||
|
||||
- name: Cache Docker Image
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
key: ${{ env.TAG }}
|
||||
path: /tmp/${{ env.TAG }}.tar
|
||||
# - name: Cache Docker Image
|
||||
# uses: actions/cache@v3
|
||||
# with:
|
||||
# key: ${{ env.TAG }}
|
||||
# path: /tmp/${{ env.TAG }}.tar
|
||||
|
||||
# - name: Upload Docker Image
|
||||
# uses: actions/upload-artifact@v3
|
||||
|
|
@ -78,7 +78,7 @@ jobs:
|
|||
# name: ${{ env.TAG }}
|
||||
# path: /tmp
|
||||
|
||||
- name: Get Cached Docker Image
|
||||
- name: Load Cache
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
key: ${{ env.TAG }}
|
||||
|
|
@ -104,6 +104,37 @@ jobs:
|
|||
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:
|
||||
# name: E2E Test
|
||||
# runs-on: ubuntu-latest
|
||||
|
|
|
|||
Loading…
Reference in a new issue