Skip to content

Commit

Permalink
💚 Github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
heliannuuthus committed Mar 11, 2024
1 parent e34b555 commit 279423a
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 20 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/gradle-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
on:
pull_request:
types: [ opened, reopened, synchronize ]

jobs:
lint:
uses: heliannuuthus/integration-deploy/.github/workflows/call-gradle-lint.yml

build:
needs: lint
uses: heliannuuthus/integration-deploy/.github/workflows/call-gradle-build.yml

publish:
needs: build
permissions:
contents: read
packages: write
uses: heliannuuthus/integration-deploy/.github/workflows/call-gradle-publish.yml
with:
user: ${{ github.actor }}
secrets:
token: ${{ secrets.GITHUB_TOKEN }}
24 changes: 4 additions & 20 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,12 @@ plugins {
id "io.spring.dependency-management" version "1.1.4"
id "org.springdoc.openapi-gradle-plugin" version "1.8.0"
id "io.freefair.lombok" version "8.6"
id 'me.qoomon.git-versioning' version '6.4.2'
id "com.diffplug.spotless" version "6.25.0"
}

apply from: "https://cdn.jsdelivr.net/gh/heliannuuthus/integration-deploy/gradle/multi-library.gradle"


ext {
openapiVersion = "2.3.0"
Expand All @@ -23,26 +27,6 @@ allprojects {
}

subprojects {
apply plugin: "java-library"
apply plugin: "org.springframework.boot"
apply plugin: "io.spring.dependency-management"
apply plugin: "io.freefair.lombok"


jar {
enabled = true
}

configurations {
all*.exclude module: "spring-boot-starter-logging"
}
}

dependencies {
testImplementation platform("org.junit:junit-bom:5.9.1")
testImplementation "org.junit.jupiter:junit-jupiter"
}

test {
useJUnitPlatform()
}
2 changes: 2 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
groups=ghrc.io
version=0.1.0

0 comments on commit 279423a

Please sign in to comment.