Skip to content

Commit

Permalink
fix: Merged changes form JB Template
Browse files Browse the repository at this point in the history
  • Loading branch information
Roboroads committed Jun 17, 2024
1 parent 5aeb1e2 commit 934bc49
Show file tree
Hide file tree
Showing 35 changed files with 1,560 additions and 96 deletions.
23 changes: 10 additions & 13 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,14 @@ 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:

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:

# Prepare environment and build the plugin
Expand Down Expand Up @@ -96,7 +100,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,7 +142,7 @@ jobs:
# Run Qodana inspections and provide report
inspectCode:
name: Inspect code
needs: [ build ]
needs: [build]
runs-on: ubuntu-latest
permissions:
contents: write
Expand Down Expand Up @@ -173,7 +177,7 @@ jobs:
# Run plugin structure verification along with IntelliJ Plugin Verifier
verify:
name: Verify plugin
needs: [ build ]
needs: [build]
runs-on: ubuntu-latest
steps:

Expand Down Expand Up @@ -225,7 +229,7 @@ jobs:
releaseDraft:
name: Release draft
if: github.event_name != 'pull_request'
needs: [ build, test, inspectCode, verify ]
needs: [build, test, inspectCode, verify]
runs-on: ubuntu-latest
permissions:
contents: write
Expand All @@ -235,13 +239,6 @@ jobs:
- name: Fetch Sources
uses: actions/checkout@v4

# Set up Java environment for the next steps
- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: zulu
java-version: 17

# Remove old release drafts by using the curl request for the available releases with a draft flag
- name: Remove Old Release Drafts
env:
Expand All @@ -256,7 +253,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release create v${{ needs.build.outputs.version }} \
gh release create "v${{ needs.build.outputs.version }}" \
--draft \
--title "v${{ needs.build.outputs.version }}" \
--notes "$(cat << 'EOM'
Expand Down
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
.gradle
.idea
/.idea/workspace.xml
/.idea/usage.statistics.xml
/.idea/shelf
.qodana
build
.vagrant
Expand Down
8 changes: 8 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions .idea/.name

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 934bc49

Please sign in to comment.