From 2ed6327c1e1cd3badf8fdd5c491ef31e5cee25ae Mon Sep 17 00:00:00 2001 From: Christy Jacob Date: Fri, 8 Sep 2023 22:03:32 +0000 Subject: [PATCH] feat: test upload artifact --- .github/workflows/tests.yml | 43 +++++++++++++++++++++++++++++++------ 1 file changed, 37 insertions(+), 6 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 479442fd68..299cf54046 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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