Skip to content

Commit

Permalink
Update workflows for composite build, remove Danger
Browse files Browse the repository at this point in the history
  • Loading branch information
matejsemancik committed Nov 20, 2023
1 parent 4979471 commit ad9c292
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 66 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/gradle-wrapper-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:

jobs:
validation:
name: Validation
name: Gradle Wrapper Validation
runs-on: ubuntu-latest
steps:
- name: Checkout latest code
Expand Down
15 changes: 3 additions & 12 deletions .github/workflows/pr-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,11 @@ concurrency:
cancel-in-progress: true

jobs:
validation:
name: Validation
check:
name: Check
runs-on: ubuntu-latest
steps:
- name: Checkout latest code
uses: actions/checkout@v4
- name: Run check
run: ./gradlew check
- name: Danger Report
uses: MeilCli/danger-action@v2
continue-on-error: true
with:
plugins_file: 'Gemfile'
danger_file: 'Dangerfile'
danger_id: 'danger-pr'
env:
DANGER_GITHUB_API_TOKEN: ${{ secrets.DANGER_GITHUB_API_TOKEN }}
run: ./gradlew --project-dir plugin-build check
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: Run check
run: ./gradlew check
run: ./gradlew --project-dir plugin-build check
- name: Publish on Plugin Portal
run: ./gradlew --project-dir plugin-build setupPublishSecrets publishPlugins
if: success()
28 changes: 0 additions & 28 deletions Dangerfile

This file was deleted.

7 changes: 0 additions & 7 deletions Gemfile

This file was deleted.

2 changes: 1 addition & 1 deletion config/detekt.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
build:
maxIssues: 50
maxIssues: 5
excludeCorrectable: false

config:
Expand Down
14 changes: 0 additions & 14 deletions plugin-build/gradle/libs.versions.toml

This file was deleted.

2 changes: 1 addition & 1 deletion plugin-build/plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ tasks.create("setupPublishSecrets") {
detekt {
ignoreFailures = false
source.setFrom(files(projectDir))
config.setFrom(files("$rootDir/config/detekt.yml"))
config.setFrom(files("$rootDir/../config/detekt.yml"))
buildUponDefaultConfig = true
}

Expand Down
8 changes: 7 additions & 1 deletion plugin-build/settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,14 @@ dependencyResolutionManagement {
repositories {
mavenCentral()
}

versionCatalogs {
create("libs") {
from(files("../gradle/libs.versions.toml"))
}
}
}

rootProject.name = "app.futured.sheethappens"

include(":plugin")
include(":plugin")

0 comments on commit ad9c292

Please sign in to comment.