Skip to content
This repository was archived by the owner on May 26, 2023. It is now read-only.

Commit a3d6ccc

Browse files
committed
build: code check pipeline
1 parent af4d55c commit a3d6ccc

File tree

2 files changed

+25
-5
lines changed

2 files changed

+25
-5
lines changed

.github/workflows/gradle-publish.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,9 @@
55
# This workflow will build a package using Gradle and then publish it to GitHub packages when a release is created
66
# For more information see: https://github.com/actions/setup-java/blob/main/docs/advanced-usage.md#Publishing-using-gradle
77

8-
name: Gradle Package
8+
name: Package deployment
99

10-
on:
11-
- pull_request
10+
on: release
1211

1312
jobs:
1413
build:
@@ -25,10 +24,10 @@ jobs:
2524
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
2625
settings-path: ${{ github.workspace }} # location for the settings.xml file
2726

28-
- name: Build with Gradle
27+
- name: Application build
2928
run: ./gradlew build
3029

31-
- name: Publish to GitHub Packages
30+
- name: Publish to Maven package registry
3231
run: ./gradlew publish
3332
env:
3433
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}

.github/workflows/pull-request.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Package deployment
2+
3+
on: pull_request
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- uses: actions/checkout@v3
12+
- name: Set up JDK 11
13+
uses: actions/setup-java@v3
14+
with:
15+
java-version: '11'
16+
distribution: 'temurin'
17+
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
18+
settings-path: ${{ github.workspace }} # location for the settings.xml file
19+
20+
- name: Code check
21+
run: ./gradlew check

0 commit comments

Comments
 (0)