mirror of
https://github.com/JetBrains/intellij-platform-plugin-template.git
synced 2024-10-27 20:44:05 +00:00
GitHub Actions — rearrange the Build workflow
This commit is contained in:
parent
c78fe31f64
commit
a544f0137e
62
.github/workflows/build.yml
vendored
62
.github/workflows/build.yml
vendored
@ -101,7 +101,7 @@ jobs:
|
|||||||
# Run tests and upload a code coverage report
|
# Run tests and upload a code coverage report
|
||||||
test:
|
test:
|
||||||
name: Test
|
name: Test
|
||||||
needs: build
|
needs: [ build ]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
@ -138,10 +138,38 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
files: ${{ github.workspace }}/build/reports/kover/xml/report.xml
|
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
|
# Run plugin structure verification along with IntelliJ Plugin Verifier
|
||||||
verify:
|
verify:
|
||||||
name: Verify plugin
|
name: Verify plugin
|
||||||
needs: build
|
needs: [ build, test, inspectCode ]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
@ -179,40 +207,12 @@ jobs:
|
|||||||
name: pluginVerifier-result
|
name: pluginVerifier-result
|
||||||
path: ${{ github.workspace }}/build/reports/pluginVerifier
|
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
|
# Prepare a draft release for GitHub Releases page for the manual verification
|
||||||
# If accepted and published, release workflow would be triggered
|
# If accepted and published, release workflow would be triggered
|
||||||
releaseDraft:
|
releaseDraft:
|
||||||
name: Release draft
|
name: Release draft
|
||||||
if: github.event_name != 'pull_request'
|
if: github.event_name != 'pull_request'
|
||||||
needs: [ build, test, verify, inspectCode ]
|
needs: [ build, verify ]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
|
@ -9,7 +9,8 @@
|
|||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
- Upgrade Gradle Wrapper to `8.2.1`
|
- 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
|
||||||
- Fixed copying files issue when running the `Template Cleanup` workflow
|
- Fixed copying files issue when running the `Template Cleanup` workflow
|
||||||
|
Loading…
Reference in New Issue
Block a user