Skip to content

Commit

Permalink
Separate repos in e2e tests (#116)
Browse files Browse the repository at this point in the history
  • Loading branch information
Enkidu93 authored Oct 19, 2023
1 parent 7c9440f commit 0ca06a2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ jobs:
dotnet-version: 6.0.x

- name: Get Serval
run: dotnet build && cd .. && git clone https://github.com/sillsdev/serval.git && cd serval && dotnet build
run: dotnet build && cd .. && mkdir tmp && cd tmp && git clone https://github.com/sillsdev/serval.git && cd serval && dotnet build && cd ../.. && tree -L 4

- name: Start containers
run: docker compose -f "../serval/docker-compose.yml" up -d && sleep 20 #allow time for mongo to start up properly
run: export MACHINE_TESTING_DIR="../../machine" && docker compose -f "../tmp/serval/docker-compose.yml" up -d && sleep 20 #separate repos; allow time for mongo to start up properly

- name: Debug network
run: docker ps -a && docker logs --since 10m serval_cntr && docker logs --since 10m echo_cntr && docker logs --since 10m machine-engine-cntr && docker logs --since 10m serval-mongo-1 && docker logs --since 10m machine-job-cntr
Expand All @@ -43,12 +43,12 @@ jobs:
run: sudo mkdir -p /var/lib/serval && sudo chmod 777 /var/lib/serval

- name: Test
run: cd ../serval && dotnet test --no-build --verbosity normal --filter "TestCategory!=slow&TestCategory=E2E"
run: cd ../tmp/serval && dotnet test --no-build --verbosity normal --filter "TestCategory!=slow&TestCategory=E2E"

- name: Debug network (Post test)
if: ${{ failure() }}
run: docker ps -a && docker logs --since 10m serval_cntr && docker logs --since 10m echo_cntr && docker logs --since 10m machine-engine-cntr && docker logs --since 10m serval-mongo-1 && docker logs --since 10m machine-job-cntr

- name: Stop containers
if: ${{ success() || failure() }}
run: docker compose -f "../serval/docker-compose.yml" down
run: docker compose -f "../tmp/serval/docker-compose.yml" down

0 comments on commit 0ca06a2

Please sign in to comment.