diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 482277a..cb68f01 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -16,7 +16,7 @@ name: Build on: # Trigger the workflow on pushes to only the 'main' branch (this avoids duplicate checks being run e.g., for dependabot pull requests) push: - branches: [ main ] + branches: [main] # Trigger the workflow on any pull request pull_request: @@ -25,16 +25,20 @@ concurrency: cancel-in-progress: true jobs: - # Prepare environment and build the plugin build: name: Build runs-on: ubuntu-latest outputs: version: ${{ steps.properties.outputs.version }} - changelog: ${{ steps.properties.outputs.changelog }} pluginVerifierHomeDir: ${{ steps.properties.outputs.pluginVerifierHomeDir }} 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 the current repository - name: Fetch Sources @@ -57,6 +61,14 @@ jobs: with: gradle-home-cache-cleanup: true + # Set environment variables + - name: Export Properties + id: properties + shell: bash + run: | + PROPERTIES="$(./gradlew properties --console=plain -q)" + echo "pluginVerifierHomeDir=~/.pluginVerifier" >> $GITHUB_OUTPUT + # Build plugin - name: Build plugin run: ./gradlew buildPlugin @@ -82,9 +94,15 @@ jobs: # Run tests and upload a code coverage report test: name: Test - needs: [ build ] + 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 the current repository - name: Fetch Sources @@ -118,10 +136,9 @@ jobs: # Run plugin structure verification along with IntelliJ Plugin Verifier verify: name: Verify plugin - needs: [ build ] + needs: [build] runs-on: ubuntu-latest steps: - # Free GitHub Actions Environment Disk Space - name: Maximize Build Space uses: jlumbroso/free-disk-space@main @@ -151,7 +168,7 @@ jobs: uses: actions/cache@v4 with: path: ${{ needs.build.outputs.pluginVerifierHomeDir }}/ides - key: plugin-verifier-${{ hashFiles('build/listProductsReleases.txt') }} + key: plugin-verifier # Run Verify Plugin task and IntelliJ Plugin Verifier tool - name: Run Plugin Verification tasks diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index de03bb8..f4d844d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -15,6 +15,13 @@ jobs: env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} 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 @@ -48,4 +55,5 @@ jobs: PROJECT_NAME="$(basename ${{ github.repository }})" PKG="$PROJECT_NAME-${VERSION:1}.zip" ls -l "$DIST_DIR" - gh release create ${{ github.ref_name }} "$DIST_DIR/$PKG" --generate-notes \ No newline at end of file + gh release create ${{ github.ref_name }} "$DIST_DIR/$PKG" --generate-notes +