From 63eb1c35739ae17a1f8aa08499d5957009da9e14 Mon Sep 17 00:00:00 2001 From: Alexandre Boyer <33391039+ng-galien@users.noreply.github.com> Date: Tue, 12 Dec 2023 20:49:15 +0100 Subject: [PATCH] Update publish actions from plugin repo --- .github/workflows/build.yml | 41 +++++++++++++++++++++++++---------- .github/workflows/release.yml | 9 ++++---- gradle.properties | 2 +- 3 files changed, 36 insertions(+), 16 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f8ee735..89c0cff 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -22,7 +22,6 @@ on: - '**/*.md' - '**/*.sql' - '**/*.xml' - - '**/*.yml' - '**/*.sh' - '**/Dockerfile' # Trigger the workflow on any pull request @@ -57,7 +56,7 @@ jobs: - name: Gradle Wrapper Validation uses: gradle/wrapper-validation-action@v1.1.0 - # Setup Java environment for the next steps + # Set up Java environment for the next steps - name: Setup Java uses: actions/setup-java@v4 with: @@ -67,6 +66,8 @@ jobs: # Setup Gradle - name: Setup Gradle uses: gradle/gradle-build-action@v2 + with: + gradle-home-cache-cleanup: true # Set environment variables - name: Export Properties @@ -119,7 +120,7 @@ jobs: - name: Fetch Sources uses: actions/checkout@v4 - # Setup Java environment for the next steps + # Set up Java environment for the next steps - name: Setup Java uses: actions/setup-java@v4 with: @@ -129,6 +130,8 @@ jobs: # Setup Gradle - name: Setup Gradle uses: gradle/gradle-build-action@v2 + with: + gradle-home-cache-cleanup: true # Run tests - name: Run Tests @@ -142,11 +145,11 @@ jobs: name: tests-result path: ${{ github.workspace }}/build/reports/tests - # Upload Kover report to CodeCov + # Upload the Kover report to CodeCov - name: Upload Code Coverage Report uses: codecov/codecov-action@v3 with: - files: ${{ github.workspace }}/build/reports/kover/xml/report.xml + files: ${{ github.workspace }}/build/reports/kover/report.xml # Run Qodana inspections and provide report inspectCode: @@ -159,11 +162,18 @@ jobs: pull-requests: write steps: + # Free GitHub Actions Environment Disk Space + - name: Maximize Build Space + uses: jlumbroso/free-disk-space@main + with: + tool-cache: false + large-packages: false + # Check out current repository - name: Fetch Sources uses: actions/checkout@v4 - # Setup Java environment for the next steps + # Set up Java environment for the next steps - name: Setup Java uses: actions/setup-java@v4 with: @@ -172,22 +182,29 @@ jobs: # Run Qodana inspections - name: Qodana - Code Inspection - uses: JetBrains/qodana-action@v2023.3.0 + uses: JetBrains/qodana-action@v2023.2.8 with: cache-default-branch-only: true # Run plugin structure verification along with IntelliJ Plugin Verifier verify: name: Verify plugin - needs: [ build, test, inspectCode ] + needs: [ build ] runs-on: ubuntu-latest steps: + # Free GitHub Actions Environment Disk Space + - name: Maximize Build Space + uses: jlumbroso/free-disk-space@main + with: + tool-cache: false + large-packages: false + # Check out current repository - name: Fetch Sources uses: actions/checkout@v4 - # Setup Java environment for the next steps + # Set up Java environment for the next steps - name: Setup Java uses: actions/setup-java@v4 with: @@ -197,6 +214,8 @@ jobs: # Setup Gradle - name: Setup Gradle uses: gradle/gradle-build-action@v2 + with: + gradle-home-cache-cleanup: true # Cache Plugin Verifier IDEs - name: Setup Plugin Verifier IDEs Cache @@ -222,7 +241,7 @@ jobs: releaseDraft: name: Release draft if: github.event_name != 'pull_request' - needs: [ build, verify ] + needs: [ build, test, inspectCode, verify ] runs-on: ubuntu-latest permissions: contents: write @@ -232,7 +251,7 @@ jobs: - name: Fetch Sources uses: actions/checkout@v4 - # Setup Java environment for the next steps + # Set up Java environment for the next steps - name: Setup Java uses: actions/setup-java@v4 with: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a77c208..0d48e56 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -24,7 +24,7 @@ jobs: with: ref: ${{ github.event.release.tag_name }} - # Setup Java environment for the next steps + # Set up Java environment for the next steps - name: Setup Java uses: actions/setup-java@v4 with: @@ -34,6 +34,8 @@ jobs: # Setup Gradle - name: Setup Gradle uses: gradle/gradle-build-action@v2 + with: + gradle-home-cache-cleanup: true # Set environment variables - name: Export Properties @@ -72,7 +74,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: gh release upload ${{ github.event.release.tag_name }} ./build/distributions/* - # Create pull request + # Create a pull request - name: Create Pull Request if: ${{ steps.properties.outputs.changelog != '' }} env: @@ -91,8 +93,7 @@ jobs: gh label create "$LABEL" \ --description "Pull requests with release changelog update" \ - --color "ededed" \ - --if-not-exists + --force \ || true gh pr create \ diff --git a/gradle.properties b/gradle.properties index 874df92..90080c6 100644 --- a/gradle.properties +++ b/gradle.properties @@ -5,7 +5,7 @@ pluginGroup = net.plpgsql.ideadebugger pluginName = idea-plpgdebugger pluginRepositoryUrl = https://github.com/ng-galien/idea-plpgdebugger # SemVer format -> https://semver.org -pluginVersion = 233.0.0 +pluginVersion = 233.0.1 # See https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html # for insight into build numbers and IntelliJ Platform versions.