Skip to content

Commit

Permalink
Merge pull request #450 from zalando/disk-space-workaround
Browse files Browse the repository at this point in the history
Address disk space issue in GH action
  • Loading branch information
cberg-zalando authored Oct 1, 2024
2 parents 341af19 + 55f4e50 commit 278aa66
Showing 1 changed file with 24 additions and 22 deletions.
46 changes: 24 additions & 22 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ name: Build Plugin

on:
push:
branches: [ "master" ]
branches: ["master"]
pull_request:
branches: [ "master" ]
branches: ["master"]

permissions:
contents: read
Expand All @@ -22,23 +22,25 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'

- name: Validate Gradle Wrapper
uses: gradle/actions/wrapper-validation@v3

# Address the "No space left on device" issue
# From here: https://github.com/jlumbroso/free-disk-space
- name: Free disk space
run: sudo rm -rf /usr/local/lib/android || true

- name: Assemble plugin
run: ./gradlew assemble

- name: Check plugin
run: ./gradlew check runPluginVerifier
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'

- name: Validate Gradle Wrapper
uses: gradle/actions/wrapper-validation@v3

# Address the "No space left on device" issue
# From here: https://github.com/jlumbroso/free-disk-space
- name: Free disk space
run: |
sudo rm -rf /usr/local/lib/android || true
sudo rm -rf "$AGENT_TOOLSDIRECTORY/CodeQL" || true
- name: Assemble plugin
run: ./gradlew assemble

- name: Check plugin
run: ./gradlew check runPluginVerifier

0 comments on commit 278aa66

Please sign in to comment.