diff --git a/.github/workflows/integrate.yml b/.github/workflows/integrate.yml index 825cb8c..fd76cea 100644 --- a/.github/workflows/integrate.yml +++ b/.github/workflows/integrate.yml @@ -57,6 +57,8 @@ jobs: test_size: name: Test size runs-on: ubuntu-latest + env: + SIZE: 4 steps: - uses: actions/checkout@v3 @@ -64,7 +66,7 @@ jobs: id: call uses: ./ with: - size: 4 + size: ${{ env.SIZE }} - name: Verify FS id: verify @@ -73,6 +75,7 @@ jobs: ${{ env.TEST_CONTENT }} EOF test "$(cat "${{ steps.call.outputs.mnt }}/content")" = "${{ env.TEST_CONTENT }}" + mount | grep ${{ steps.call.outputs.mnt }} | grep "size=$((${{ env.SIZE }} * 1024))" continue-on-error: true - name: Cleanup diff --git a/action.yml b/action.yml index 20357df..97709c2 100644 --- a/action.yml +++ b/action.yml @@ -29,7 +29,7 @@ runs: sudo mkdir -p "${MNT}" \ && echo ":heavy_check_mark: Temp FS mount point creation succeeded" >> $GITHUB_STEP_SUMMARY \ || { echo ":x: Temp FS mount point creation failed" >> $GITHUB_STEP_SUMMARY; exit 1; } - sudo mount -o size=${{ inputs.size }},uid=$(id -u) -t tmpfs tmpfs "${MNT}" \ + sudo mount -o size=${{ inputs.size }}M,uid=$(id -u) -t tmpfs tmpfs "${MNT}" \ && echo ":heavy_check_mark: Temp FS mount operation succeeded" >> $GITHUB_STEP_SUMMARY \ || { echo ":x: Temp FS mount operation failed" >> $GITHUB_STEP_SUMMARY; exit 1; } echo "uuid=${UUID}" >> $GITHUB_OUTPUT