Skip to content

Commit

Permalink
GitHub Actions — rearrange the Build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
hsz committed Jul 11, 2023
1 parent c78fe31 commit a544f01
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 32 deletions.
62 changes: 31 additions & 31 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down Expand Up @@ -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:

Expand Down Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a544f01

Please sign in to comment.