diff --git a/.github/workflows/build-feature.yml b/.github/workflows/build-feature.yml index 7fd26db823f..41ffa85c4ba 100644 --- a/.github/workflows/build-feature.yml +++ b/.github/workflows/build-feature.yml @@ -6,10 +6,10 @@ on: - master - 1.* - 2.* + pull_request: jobs: build: - strategy: matrix: os: [ubuntu-latest] @@ -17,6 +17,15 @@ jobs: runs-on: ${{ matrix.os }} steps: + - name: free disk space + run: | + df -h + sudo swapoff -a + sudo rm -f /swapfile + sudo apt clean + docker rmi $(docker image ls -aq) + df -h + - uses: actions/checkout@v4 - name: Set up JDK 17 diff --git a/.github/workflows/build-pullrequest.yml b/.github/workflows/build-pullrequest.yml deleted file mode 100644 index 0edad7d8bde..00000000000 --- a/.github/workflows/build-pullrequest.yml +++ /dev/null @@ -1,42 +0,0 @@ -name: build pull requests - -on: - pull_request: - -jobs: - build: - strategy: - matrix: - os: [ubuntu-latest] - - runs-on: ${{ matrix.os }} - steps: - - - uses: actions/checkout@v4 - - - name: Set up JDK 17 - uses: actions/setup-java@v4 - with: - distribution: 'temurin' - java-version: '17' - cache: 'maven' - - - name: Cache node modules - uses: actions/cache@v4 - env: - cache-name: cache-node-modules - with: - path: ~/.npm - key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} - restore-keys: | - ${{ runner.os }}-build-${{ env.cache-name }}- - - # since we also build on Windows Powershell, we need to add a space between -D maven.javadoc.skip=true - # otherwise the build will fail https://stackoverflow.com/questions/38051787/maven-javadoc-skip-true-throws-an-error - - name: Build with Maven - run: | - mvn -B verify -P coverage --no-transfer-progress -D maven.javadoc.skip=true - - - uses: codecov/codecov-action@v4 - with: - files: "'*/jacoco.xml'" diff --git a/.github/workflows/release-to-maven-central.yml b/.github/workflows/release-to-maven-central.yml index 10186adf747..a429ad6c6fc 100644 --- a/.github/workflows/release-to-maven-central.yml +++ b/.github/workflows/release-to-maven-central.yml @@ -19,6 +19,15 @@ jobs: steps: - run: echo "Will start a Maven Central upload with version ${{ github.event.inputs.releaseversion }}" + - name: free disk space + run: | + df -h + sudo swapoff -a + sudo rm -f /swapfile + sudo apt clean + docker rmi $(docker image ls -aq) + df -h + - uses: actions/checkout@v4 - name: Set up settings.xml for Maven Central Repository @@ -80,6 +89,15 @@ jobs: steps: - uses: actions/checkout@v4 + - name: free disk space + run: | + df -h + sudo swapoff -a + sudo rm -f /swapfile + sudo apt clean + docker rmi $(docker image ls -aq) + df -h + - name: Generate changelog id: changelog uses: metcalfc/changelog-generator@v4.3.1