From e390cf0d70cf7da273def57cd513e2dc954d5e91 Mon Sep 17 00:00:00 2001 From: Christy Jacob Date: Sat, 9 Sep 2023 00:11:14 +0000 Subject: [PATCH] chore: update CI file --- .github/workflows/tests.yml | 54 ++++++++++++++++++------------------- 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 028599d7e8..5d83b4a2cc 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -102,34 +102,34 @@ jobs: - name: Run Unit Tests run: docker compose exec appwrite test /usr/src/code/tests/unit - # e2e_test: - # name: E2E Test - # runs-on: ubuntu-latest - # needs: setup - # strategy: - # fail-fast: false - # matrix: - # services: [Account,Avatars,Console,Databases,Functions,GraphQL,Health,Locale,Projects,Realtime,Storage,Teams,Users,Webhooks] + e2e_test: + name: E2E Test + runs-on: ubuntu-latest + needs: setup + strategy: + fail-fast: false + matrix: + services: [Account,Avatars,Console,Databases,Functions,GraphQL,Health,Locale,Projects,Realtime,Storage,Teams,Users,Webhooks] - # steps: - # - name: checkout - # uses: actions/checkout@v2 - # with: - # fetch-depth: 2 - # submodules: recursive + steps: + - name: checkout + uses: actions/checkout@v2 + with: + fetch-depth: 2 + submodules: recursive - # - name: Load Cache - # uses: actions/cache@v3 - # with: - # key: ${{ env.IMAGE }}-${{ github.sha }} - # path: /tmp/${{ env.IMAGE }}.tar - # fail-on-cache-miss: true + - name: Load Cache + uses: actions/cache@v3 + with: + key: ${{ env.IMAGE }}-${{ github.sha }} + path: /tmp/allinone.tar + fail-on-cache-miss: true - # - name: Load and Start Appwrite - # run: | - # docker load --input /tmp/${{ env.IMAGE }}.tar - # docker compose up -d - # sleep 20 + - name: Load and Start Appwrite + run: | + docker load --input /tmp/allinone.tar + docker compose up -d + sleep 20 - # - name: Run ${{matrix.services}} Tests - # run: docker compose exec -T appwrite test /usr/src/code/tests/e2e/Services/${{matrix.services}} --debug \ No newline at end of file + - name: Run ${{matrix.services}} Tests + run: docker compose exec -T appwrite test /usr/src/code/tests/e2e/Services/${{matrix.services}} --debug \ No newline at end of file