feat: test upload artifact

This commit is contained in:
Christy Jacob 2023-09-08 22:03:32 +00:00
parent cf030457e0
commit 2ed6327c1e

View file

@ -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