Puzzlepart / prosjektportalen365

Prosjektportalen for Microsoft 365
MIT License
29 stars 16 forks source link

CI (dev) fails due to lack of storage space #803

Closed olemp closed 2 years ago

olemp commented 2 years ago

Thank you for reporting an issue, suggesting an enhancement, or asking a question. We appreciate your feedback - to help the team understand your needs, please complete the below template to ensure we have the details to help. Thanks!

Category

[ ] Enhancement

[x] Bug

[ ] Question

Browser

N/A

Summary

CI (dev) fails due to lack of storage space, but it seems to be no issues with storage on the runner.

image

Version

N/A

Expected / Desired Behavior / Question

N/A

Observed Behavior

N/A

Steps to Reproduce

N/A

olemp commented 2 years ago

According to Get-PSDrive we have 12.09 GB left on D drive.

We could still try though to use C:/ drive (as in https://github.com/actions/runner-images/issues/1341).

olemp commented 2 years ago

It makes NO sense @Remi749 🚀

image

olemp commented 2 years ago

Seems like it worked to use C:/ drive @Remi749

image

olemp commented 2 years ago

For now it works using C:/ drive, but I'm hoping to hear back from GitHub regarding using default drive (D).

olemp commented 2 years ago

So to summarize:

It seems to work fine using the C:/ drive, but we cannot use the action actions/checkout@v2 when using the C:/ drive.

image

Therefore we need to run our git commands directly.

      - name: Checkout Puzzlepart/prosjektportalen365.git
        run: |
          mkdir C:/prosjektportalen365
          git clone --branch dev https://github.com/Puzzlepart/prosjektportalen365.git C:/prosjektportalen365

      - name: Checkout current SHA
        working-directory: C:/prosjektportalen365
        run: git checkout $GITHUB_SHA

      - name: Set sha_short
        id: vars
        working-directory: C:/prosjektportalen365
        run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"

I'm still hoping to hear back from GitHub regarding using default drive (D).

FYI @okms @Remi749 @pzljanb 🍌