From 54c570da3a47670eda27b500a6076a7c23177d75 Mon Sep 17 00:00:00 2001 From: James Fantin-Hardesty <24646452+jfantinhardesty@users.noreply.github.com> Date: Fri, 15 Sep 2023 08:24:03 -0600 Subject: [PATCH] Fix issue --- .github/workflows/code-coverage.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/code-coverage.yml b/.github/workflows/code-coverage.yml index 01561be79..5ddf6d549 100644 --- a/.github/workflows/code-coverage.yml +++ b/.github/workflows/code-coverage.yml @@ -54,7 +54,11 @@ jobs: - name: Create Directory Structure run: |- sudo mkdir -p ${{ env.MOUNT_DIR }} + sudo chown -R `whoami` ${{ env.MOUNT_DIR }} + chmod 777 ${{ env.MOUNT_DIR }} sudo mkdir -p ${{ env.TEMP_DIR }} + sudo chown -R `whoami` ${{ env.TEMP_DIR }} + chmod 777 ${{ env.TEMP_DIR }} - name: Go module cache uses: actions/cache@v3 @@ -108,8 +112,8 @@ jobs: echo "\"region\"": "\"${{ secrets.S3TEST_REGION }}\"" >> $cnfFile echo "}" >> $cnfFile - - name: UT Code Coverage - run: go test -v -timeout=1h ./... --tags=unittest,storagetest -covermode count -coverprofile ./cloudfuse_ut.cov + # - name: UT Code Coverage + # run: go test -v -timeout=1h ./... --tags=unittest,storagetest -covermode count -coverprofile ./cloudfuse_ut.cov - name: Build coverage binary run: go test -coverpkg="./..." -covermode=count -c -o cloudfuse.test