Skip to content

Commit

Permalink
integration tests: move docker-data directory instead of pruning
Browse files Browse the repository at this point in the history
  • Loading branch information
lippertmarkus authored and stepchowfun committed Jul 12, 2021
1 parent e32b14d commit 4affdbc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,14 @@ jobs:
command: build
args: --release
# lint already runs on Linux and check is not needed as already happens while building
- run: |
- name: Cleanup docker
run: |
mkdir C:\docker-data
Set-Content -Value "`{`"data-root`":`"C:\\docker-data`"`}" -Path C:\ProgramData\docker\config\daemon.json
Restart-Service docker
shell: powershell
- name: Run integration tests
run: |
WINDOWS=true ./integration_test.sh
shell: bash

Expand Down
3 changes: 0 additions & 3 deletions integration_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ done
# Start Docuum in the background.
echo 'Starting Docuum…'
if $WINDOWS; then
# Windows integration tests doesn't run with dind so we need to prune all images on the CI worker
echo 'Pruning images on Windows CI worker…'
docker image prune -a -f
target/release/docuum.exe --threshold 725MB &
else
/artifacts/docuum-x86_64-unknown-linux-musl --threshold 13MB &
Expand Down

0 comments on commit 4affdbc

Please sign in to comment.