Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 13 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,19 @@ jobs:
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle

- name: Test
- name: Run Plugin Verifier
run: ./gradlew verifyPlugin

- name: Run Tests
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
SNYK_ORG_NAME: ${{ secrets.SNYK_ORG_NAME }}
run: |
./gradlew check -x detekt test verifyPlugin clean
./gradlew clean check -x detekt
git clean -d --force
git reset --hard


- name: Create Tag
id: createTag
if: ${{ !env.ACT }}
Expand All @@ -71,13 +75,6 @@ jobs:
./gradlew release -Prelease.dryRun
echo "tagName=$(./gradlew cV -q -Prelease.quiet)" >> $GITHUB_OUTPUT

- name: Create release
if: ${{ !env.ACT }}
id: create_release
env:
GH_TOKEN: ${{ github.token }}
run: gh release create ${{ steps.createTag.outputs.tagName }} --generate-notes $(find . -name 'snyk-intellij-plugin-*.zip')

- name: Publish Plugin
if: ${{ !env.ACT }}
env:
Expand All @@ -87,3 +84,10 @@ jobs:
ORG_GRADLE_PROJECT_iterativelyEnvironment: "PRODUCTION"
ORG_GRADLE_PROJECT_segmentWriteKey: ${{ secrets.SEGMENT_WRITE_KEY }}
run: ./gradlew publishPlugin

- name: Create release
if: ${{ !env.ACT }}
id: create_release
env:
GH_TOKEN: ${{ github.token }}
run: gh release create ${{ steps.createTag.outputs.tagName }} --generate-notes $(find . -name 'snyk-intellij-plugin-*.zip')
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ dependencies {
implementation("org.json:json:20231013")
implementation("org.slf4j:slf4j-api:2.0.5")
implementation("org.apache.commons:commons-text:1.12.0")
implementation("org.apache.commons:commons-lang3:3.17.0")
implementation("org.apache.commons:commons-lang3:3.18.0")

testImplementation("com.google.jimfs:jimfs:1.3.0")
testImplementation("com.squareup.okhttp3:mockwebserver")
Expand All @@ -83,7 +83,7 @@ dependencies {
intellijPlatform {
// Required configuration for IntelliJ Platform dependencies
pluginConfiguration {
id.set(properties("pluginGroup"))
id.set(properties("pluginId"))
name.set(properties("pluginName"))
version.set(project.version.toString())
description.set("Snyk helps you find, fix and monitor for known vulnerabilities in your dependencies")
Expand Down
1 change: 1 addition & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
pluginGroup=io.snyk.intellij
pluginId=io.snyk.snyk-intellij-plugin
pluginName=Snyk Security

# for insight into build numbers and IntelliJ Platform versions
Expand Down
Loading