Skip to content

Commit b6b5570

Browse files
committed
Add General E2E tests to CI pipeline
1 parent 3236e9e commit b6b5570

File tree

1 file changed

+27
-3
lines changed

1 file changed

+27
-3
lines changed

.github/workflows/tests.yml

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,32 @@ jobs:
7575
- name: Run Unit Tests
7676
run: docker compose exec appwrite test /usr/src/code/tests/unit
7777

78-
e2e_test:
79-
name: E2E Test
78+
e2e_general_test:
79+
name: E2E General Test
80+
runs-on: ubuntu-latest
81+
needs: setup
82+
steps:
83+
- name: checkout
84+
uses: actions/checkout@v3
85+
86+
- name: Load Cache
87+
uses: actions/cache@v3
88+
with:
89+
key: ${{ env.CACHE_KEY }}
90+
path: /tmp/${{ env.IMAGE }}.tar
91+
fail-on-cache-miss: true
92+
93+
- name: Load and Start Appwrite
94+
run: |
95+
docker load --input /tmp/${{ env.IMAGE }}.tar
96+
docker compose up -d
97+
sleep 10
98+
99+
- name: Run General Tests
100+
run: docker compose exec -T appwrite test /usr/src/code/tests/e2e/General --debug
101+
102+
e2e_service_test:
103+
name: E2E Service Test
80104
runs-on: ubuntu-latest
81105
needs: setup
82106
strategy:
@@ -119,4 +143,4 @@ jobs:
119143
sleep 10
120144
121145
- name: Run ${{matrix.service}} Tests
122-
run: docker compose exec -T appwrite test /usr/src/code/tests/e2e/Services/${{matrix.service}} --debug
146+
run: docker compose exec -T appwrite test /usr/src/code/tests/e2e/Services/${{matrix.service}} --debug

0 commit comments

Comments
 (0)