GitHub Actions — rearrange the Build workflow

pull/381/head
Jakub Chrzanowski 10 months ago
parent c78fe31f64
commit a544f0137e
No known key found for this signature in database
GPG Key ID: C39095BFD769862E

@ -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

@ -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

Loading…
Cancel
Save