Skip to content

Commit

Permalink
Merge pull request #3912 from Agnul97/fix-ciConfigImrovements
Browse files Browse the repository at this point in the history
FIX - CI configiguration imrovements
  • Loading branch information
Coduz authored Dec 1, 2023
2 parents b21f4ba + 9f0f7e8 commit 81b0a39
Showing 1 changed file with 22 additions and 88 deletions.
110 changes: 22 additions & 88 deletions .github/workflows/kapua-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,10 @@ jobs:
with:
distribution: 'zulu'
java-version: '8'
cache: 'maven'
- uses: actions/cache@v3 # Cache local Maven repository to reuse dependencies
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
key: ${{ github.run_id }}-${{ github.run_number }}-maven-cache
- run: mvn -v
- run: mvn -B ${BUILD_OPTS} -DskipTests clean install
- run: bash <(curl -s https://codecov.io/bash)
Expand All @@ -35,13 +32,10 @@ jobs:
with:
distribution: 'zulu'
java-version: '8'
cache: 'maven'
- uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
key: ${{ github.run_id }}-${{ github.run_number }}-maven-cache
- uses: nick-fields/[email protected]
with:
timeout_minutes: 30
Expand All @@ -58,13 +52,10 @@ jobs:
with:
distribution: 'zulu'
java-version: '8'
cache: 'maven'
- uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
key: ${{ github.run_id }}-${{ github.run_number }}-maven-cache
- uses: nick-fields/[email protected]
with:
timeout_minutes: 30
Expand All @@ -81,13 +72,10 @@ jobs:
with:
distribution: 'zulu'
java-version: '8'
cache: 'maven'
- uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
key: ${{ github.run_id }}-${{ github.run_number }}-maven-cache
- uses: nick-fields/[email protected]
with:
timeout_minutes: 30
Expand All @@ -104,13 +92,10 @@ jobs:
with:
distribution: 'zulu'
java-version: '8'
cache: 'maven'
- uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
key: ${{ github.run_id }}-${{ github.run_number }}-maven-cache
- uses: nick-fields/[email protected]
with:
timeout_minutes: 30
Expand All @@ -127,13 +112,10 @@ jobs:
with:
distribution: 'zulu'
java-version: '8'
cache: 'maven'
- uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
key: ${{ github.run_id }}-${{ github.run_number }}-maven-cache
- uses: nick-fields/[email protected]
with:
timeout_minutes: 30
Expand All @@ -150,13 +132,10 @@ jobs:
with:
distribution: 'zulu'
java-version: '8'
cache: 'maven'
- uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
key: ${{ github.run_id }}-${{ github.run_number }}-maven-cache
- uses: nick-fields/[email protected]
with:
timeout_minutes: 30
Expand All @@ -173,13 +152,10 @@ jobs:
with:
distribution: 'zulu'
java-version: '8'
cache: 'maven'
- uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
key: ${{ github.run_id }}-${{ github.run_number }}-maven-cache
- uses: nick-fields/[email protected]
with:
timeout_minutes: 30
Expand All @@ -196,13 +172,10 @@ jobs:
with:
distribution: 'zulu'
java-version: '8'
cache: 'maven'
- uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
key: ${{ github.run_id }}-${{ github.run_number }}-maven-cache
- uses: nick-fields/[email protected]
with:
timeout_minutes: 30
Expand All @@ -219,13 +192,10 @@ jobs:
with:
distribution: 'zulu'
java-version: '8'
cache: 'maven'
- uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
key: ${{ github.run_id }}-${{ github.run_number }}-maven-cache
- uses: nick-fields/[email protected]
with:
timeout_minutes: 30
Expand All @@ -242,13 +212,10 @@ jobs:
with:
distribution: 'zulu'
java-version: '8'
cache: 'maven'
- uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
key: ${{ github.run_id }}-${{ github.run_number }}-maven-cache
- uses: nick-fields/[email protected]
with:
timeout_minutes: 30
Expand All @@ -265,13 +232,10 @@ jobs:
with:
distribution: 'zulu'
java-version: '8'
cache: 'maven'
- uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
key: ${{ github.run_id }}-${{ github.run_number }}-maven-cache
- uses: nick-fields/[email protected]
with:
timeout_minutes: 30
Expand All @@ -288,13 +252,10 @@ jobs:
with:
distribution: 'zulu'
java-version: '8'
cache: 'maven'
- uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
key: ${{ github.run_id }}-${{ github.run_number }}-maven-cache
- uses: nick-fields/[email protected]
with:
timeout_minutes: 30
Expand All @@ -311,13 +272,10 @@ jobs:
with:
distribution: 'zulu'
java-version: '8'
cache: 'maven'
- uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
key: ${{ github.run_id }}-${{ github.run_number }}-maven-cache
- uses: nick-fields/[email protected]
with:
timeout_minutes: 30
Expand All @@ -334,13 +292,10 @@ jobs:
with:
distribution: 'zulu'
java-version: '8'
cache: 'maven'
- uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
key: ${{ github.run_id }}-${{ github.run_number }}-maven-cache
- uses: nick-fields/[email protected]
with:
timeout_minutes: 30
Expand All @@ -357,13 +312,10 @@ jobs:
with:
distribution: 'zulu'
java-version: '8'
cache: 'maven'
- uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
key: ${{ github.run_id }}-${{ github.run_number }}-maven-cache
- uses: nick-fields/[email protected]
with:
timeout_minutes: 30
Expand All @@ -380,13 +332,10 @@ jobs:
with:
distribution: 'zulu'
java-version: '8'
cache: 'maven'
- uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
key: ${{ github.run_id }}-${{ github.run_number }}-maven-cache
- uses: nick-fields/[email protected]
with:
timeout_minutes: 30
Expand All @@ -403,13 +352,10 @@ jobs:
with:
distribution: 'zulu'
java-version: '8'
cache: 'maven'
- uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
key: ${{ github.run_id }}-${{ github.run_number }}-maven-cache
- uses: nick-fields/[email protected]
with:
timeout_minutes: 30
Expand All @@ -426,13 +372,10 @@ jobs:
with:
distribution: 'zulu'
java-version: '8'
cache: 'maven'
- uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
key: ${{ github.run_id }}-${{ github.run_number }}-maven-cache
- uses: nick-fields/[email protected]
with:
timeout_minutes: 30
Expand All @@ -449,13 +392,10 @@ jobs:
with:
distribution: 'zulu'
java-version: '8'
cache: 'maven'
- uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
key: ${{ github.run_id }}-${{ github.run_number }}-maven-cache
- uses: nick-fields/[email protected]
with:
timeout_minutes: 30
Expand All @@ -472,13 +412,10 @@ jobs:
with:
distribution: 'zulu'
java-version: '8'
cache: 'maven'
- uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
key: ${{ github.run_id }}-${{ github.run_number }}-maven-cache
- uses: nick-fields/[email protected]
with:
timeout_minutes: 30
Expand All @@ -495,12 +432,9 @@ jobs:
with:
distribution: 'zulu'
java-version: '8'
cache: 'maven'
- uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
key: ${{ github.run_id }}-${{ github.run_number }}-maven-cache
- run: mvn -B -DskipTests install javadoc:jar
- run: bash <(curl -s https://codecov.io/bash)

0 comments on commit 81b0a39

Please sign in to comment.