Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/workflows/CICD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,40 @@ jobs:
command: test
args: --locked --target=${{ matrix.job.target }} ${{ steps.test-options.outputs.CARGO_TEST_OPTIONS}}

- name: Integration tests
shell: bash
run: |
mkdir test-directory
touch test-directory/empty-file
mkdir test-directory/empty-subdirectory
echo -n "123" > test-directory/file-3-bytes
echo -n "1234567" > test-directory/file-7-bytes

if [ "$RUNNER_OS" == "Windows" ]; then
curl https://download.sysinternals.com/files/DU.zip --output DU.zip
unzip DU.zip
./du64.exe -accepteula -q test-directory/empty-file
fi

echo "Disk usage"
echo "=========="
${{ steps.strip.outputs.BIN_PATH }} test-directory
if [ "$RUNNER_OS" == "Windows" ]; then
./du64.exe -q test-directory
elif [ "$RUNNER_OS" == "macOS" ]; then
du -c -k test-directory
else
du -s --block-size=1 test-directory
fi

if [ "$RUNNER_OS" == "Linux" ]; then
echo
echo "Apparent size"
echo "============="
${{ steps.strip.outputs.BIN_PATH }} --apparent-size test-directory
du -s --apparent-size --block-size=1 test-directory
fi

- name: Create tarball
id: package
shell: bash
Expand Down