chore: update CI file
This commit is contained in:
parent
5cb14fbec5
commit
21357bfe7b
76
.github/workflows/tests.yml
vendored
76
.github/workflows/tests.yml
vendored
|
@ -42,23 +42,10 @@ jobs:
|
|||
load: true
|
||||
cache-from: type=gha
|
||||
cache-to: type=gha,mode=max
|
||||
outputs: type=docker,dest=/tmp/${{ env.IMAGE }}.tar
|
||||
build-args: |
|
||||
DEBUG=false
|
||||
TESTING=true
|
||||
VERSION=dev
|
||||
|
||||
- name: Cache Docker Image
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
key: ${{ env.IMAGE }}
|
||||
path: /tmp/${{ env.IMAGE }}.tar
|
||||
|
||||
# - name: Upload Docker Image
|
||||
# uses: actions/upload-artifact@v3
|
||||
# with:
|
||||
# name: ${{ env.IMAGE }}
|
||||
# path: /tmp/${{ env.IMAGE }}.tar
|
||||
|
||||
unit_test:
|
||||
name: Unit Test
|
||||
|
@ -71,28 +58,10 @@ jobs:
|
|||
with:
|
||||
fetch-depth: 1
|
||||
submodules: recursive
|
||||
|
||||
# - name: Download artifact
|
||||
# uses: actions/download-artifact@v3
|
||||
# with:
|
||||
# name: ${{ env.IMAGE }}
|
||||
# path: /tmp
|
||||
|
||||
- name: Load Cache
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
key: ${{ env.IMAGE }}
|
||||
path: /tmp/${{ env.IMAGE }}.tar
|
||||
|
||||
- name: Load Docker image
|
||||
run: |
|
||||
docker load --input /tmp/${{ env.IMAGE }}.tar
|
||||
docker image ls -a
|
||||
|
||||
- name: Start Appwrite
|
||||
run: |
|
||||
docker compose up -d
|
||||
sleep 10
|
||||
|
||||
- name: Doctor
|
||||
run: docker compose exec -T appwrite doctor
|
||||
|
@ -103,38 +72,6 @@ jobs:
|
|||
- name: Run Unit Tests
|
||||
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.IMAGE }}
|
||||
# path: /tmp/${{ env.IMAGE }}.tar
|
||||
|
||||
# - name: Load Docker image
|
||||
# run: |
|
||||
# docker load --input /tmp/${{ env.IMAGE }}.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
|
||||
|
@ -151,20 +88,7 @@ jobs:
|
|||
fetch-depth: 2
|
||||
submodules: recursive
|
||||
|
||||
- name: Load Cache
|
||||
id: load-cache
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
key: ${{ env.IMAGE }}
|
||||
path: /tmp/${{ env.IMAGE }}.tar
|
||||
|
||||
- name: Load Docker image
|
||||
run: |
|
||||
docker load --input /tmp/${{ env.IMAGE }}.tar
|
||||
docker image ls -a
|
||||
|
||||
- name: Start Appwrite
|
||||
if: steps.load-cache.outputs.cache-hit == 'true'
|
||||
run: |
|
||||
docker compose up -d
|
||||
sleep 20
|
||||
|
|
Loading…
Reference in a new issue