From a544f0137ee51ad22a1928a05e8b1607eb016311 Mon Sep 17 00:00:00 2001 From: Jakub Chrzanowski Date: Tue, 11 Jul 2023 15:59:41 +0200 Subject: [PATCH] =?UTF-8?q?GitHub=20Actions=20=E2=80=94=20rearrange=20the?= =?UTF-8?q?=20Build=20workflow?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build.yml | 62 ++++++++++++++++++------------------- CHANGELOG.md | 3 +- 2 files changed, 33 insertions(+), 32 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fcea53e..5e6b8b1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -101,7 +101,7 @@ jobs: # Run tests and upload a code coverage report test: name: Test - needs: build + needs: [ build ] runs-on: ubuntu-latest steps: @@ -138,10 +138,38 @@ jobs: with: files: ${{ github.workspace }}/build/reports/kover/xml/report.xml + # Run Qodana inspections and provide report + inspectCode: + name: Inspect code + needs: [ build ] + runs-on: ubuntu-latest + permissions: + contents: write + checks: write + pull-requests: write + steps: + + # Check out current repository + - name: Fetch Sources + uses: actions/checkout@v3 + + # Setup Java environment for the next steps + - name: Setup Java + uses: actions/setup-java@v3 + with: + distribution: zulu + java-version: 17 + + # Run Qodana inspections + - name: Qodana - Code Inspection + uses: JetBrains/qodana-action@v2023.1.5 + with: + cache-default-branch-only: true + # Run plugin structure verification along with IntelliJ Plugin Verifier verify: name: Verify plugin - needs: build + needs: [ build, test, inspectCode ] runs-on: ubuntu-latest steps: @@ -179,40 +207,12 @@ jobs: name: pluginVerifier-result path: ${{ github.workspace }}/build/reports/pluginVerifier - # Run Qodana inspections and provide report - inspectCode: - name: Inspect code - needs: build - runs-on: ubuntu-latest - permissions: - contents: write - checks: write - pull-requests: write - steps: - - # Check out current repository - - name: Fetch Sources - uses: actions/checkout@v3 - - # Setup Java environment for the next steps - - name: Setup Java - uses: actions/setup-java@v3 - with: - distribution: zulu - java-version: 17 - - # Run Qodana inspections - - name: Qodana - Code Inspection - uses: JetBrains/qodana-action@v2023.1.5 - with: - cache-default-branch-only: true - # Prepare a draft release for GitHub Releases page for the manual verification # If accepted and published, release workflow would be triggered releaseDraft: name: Release draft if: github.event_name != 'pull_request' - needs: [ build, test, verify, inspectCode ] + needs: [ build, verify ] runs-on: ubuntu-latest permissions: contents: write diff --git a/CHANGELOG.md b/CHANGELOG.md index c815154..d1cb133 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,7 +9,8 @@ ### Changed - Upgrade Gradle Wrapper to `8.2.1` -- Dependencies - upgrade `org.jetbrains.changelog` to `2.1.2` +- Dependencies — upgrade `org.jetbrains.changelog` to `2.1.2` +- GitHub Actions — rearrange the Build workflow ### Fixed - Fixed copying files issue when running the `Template Cleanup` workflow