Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: add a new test case for the disk is full #3079

Merged
merged 9 commits into from
Oct 13, 2023
35 changes: 35 additions & 0 deletions .github/workflows/fs_write_full_disk.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Fs write full disk

on:
push:
branches:
- main

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Create disk image
run: |
fallocate -l 512K disk.img
mkfs disk.img

- name: Mount disk image
run: |
mkdir ./td
sudo mount -o loop disk.img ./td

- name: Set permissions
run: chmod a+wr ./td

# Add more steps for testing as needed
sunheyi6 marked this conversation as resolved.
Show resolved Hide resolved

- name: Clean up
run: |
sudo umount ./td
rm -rf ./td
rm disk.img