Skip to content

Commit

Permalink
fix: test build mount set to parent of current workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
easimon committed Dec 4, 2023
1 parent bb67daa commit 5bcaa09
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,29 @@ jobs:
with:
build-mount-path: /var/lib/docker/tmp

test-mount-parent-of-workspace:
name: Test removing root-owned folder
runs-on: ubuntu-latest
steps:
- name: Check out Maximize Build Space action
uses: actions/checkout@v4
with:
path: ./.github/actions/maximize-test

- name: Calculate parent of workspace
id: workspace-parent
run: echo "parent=${dirname ${GITHUB_WORKSPACE}}" >> "$GITHUB_OUTPUT"

- name: Maximize build space
uses: ./.github/actions/maximize-test
with:
build-mount-path: ${{ steps.workspace-parent.outputs.parent }}

- name: Create file in build folder as runner user
run: |
mkdir -p ${{ steps.workspace-parent.outputs.parent }}/new
touch ${{ steps.workspace-parent.outputs.parent }}/new/file.txt
determine-free-space:
name: Determine free space with different settings
runs-on: ${{ matrix.os }}
Expand Down

0 comments on commit 5bcaa09

Please sign in to comment.