Skip to content
This repository has been archived by the owner on Oct 31, 2024. It is now read-only.

Update pipeline code #392

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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
20 changes: 4 additions & 16 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,27 +12,15 @@ jobs:

steps:
- uses: actions/checkout@v3
- name: Set up JDK 1.11
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: '11'
java-version: '17'
distribution: 'corretto'

- name: Grant execute permission for gradlew
run: chmod +x gradlew

- name: install jq
run: sudo apt-get install -y jq

- name: Cache Gradle packages
uses: actions/cache@v3
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle
cache: 'gradle'

- name: Build with Gradle
run: ./gradlew build --info
run: ./gradlew build --info --no-daemon

- name: Codacy Coverage Reporter
uses: codacy/codacy-coverage-reporter-action@v1
Expand Down
20 changes: 6 additions & 14 deletions .github/workflows/maven-central.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,13 @@ jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.11
uses: actions/setup-java@v1
- uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: 1.11

- name: Grant execute permission for gradlew
run: chmod +x gradlew

- name: Cache Gradle packages
uses: actions/cache@v2
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle
java-version: '17'
distribution: 'corretto'
cache: 'gradle'

- name: Build with Gradle
env:
Expand Down