-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
71835a2
commit 5e0d062
Showing
1 changed file
with
13 additions
and
19 deletions.
There are no files selected for viewing
32 changes: 13 additions & 19 deletions
32
.github/workflows/build.yml → .github/workflows/build-project.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,41 @@ | ||
name: 'Build' | ||
|
||
permissions: | ||
contents: 'read' | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: [ 'master' ] | ||
|
||
permissions: | ||
contents: 'read' | ||
|
||
jobs: | ||
validate: | ||
name: 'validate' | ||
build: | ||
name: 'build, test and publish' | ||
runs-on: 'ubuntu-latest' | ||
|
||
steps: | ||
- name: 'Checkout repository' | ||
uses: 'actions/checkout@v3' | ||
uses: 'actions/checkout@v2' | ||
|
||
- name: 'Validate gradle wrapper' | ||
uses: 'gradle/wrapper-validation-action@v1' | ||
|
||
build: | ||
name: 'build, test and publish' | ||
runs-on: 'ubuntu-latest' | ||
|
||
steps: | ||
- name: 'Set up JDK 17' | ||
- name: 'Setup JDK 17' | ||
uses: 'actions/setup-java@v3' | ||
with: | ||
java-version: '17' | ||
distribution: 'corretto' | ||
|
||
- name: 'Checkout repository' | ||
uses: 'actions/checkout@v3' | ||
- name: 'Validate gradle wrapper' | ||
uses: 'gradle/wrapper-validation-action@v1' | ||
|
||
- name: 'Gradle permissions' | ||
- name: 'Setup gradle permissions' | ||
run: 'chmod +x gradlew' | ||
|
||
|
||
- name: 'Test project' | ||
run: './gradlew test' | ||
|
||
- name: 'Clean and build project' | ||
run: './gradlew clean build' | ||
- name: 'Build project' | ||
run: './gradlew build' | ||
|
||
- name: 'Publish project' | ||
run: './gradlew publishToMavenLocal' |