PMT-3: Update CI with caching for Dependencies
All checks were successful
Quality Check / Testing (push) Successful in 1m27s
Quality Check / Static Analysis (push) Successful in 1m40s
Quality Check / Linting (push) Successful in 1m41s
Quality Check / Validate OAS (push) Successful in 16s

This commit is contained in:
Dominik Säume 2024-09-19 21:58:48 +02:00
parent 067e146a9b
commit 45d6b51967
Signed by: SZUT-Dominik
GPG key ID: 67D15BB250B41E7C

View file

@ -13,10 +13,21 @@ jobs:
steps:
- name: "Checkout"
uses: "https://git.euph.dev/actions/checkout@v3"
- uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: "Prepare Gradle"
run: gradle clean
- name: "Validate OAS Spec"
run: gradle validateSwagger
- name: "Stop Gradle"
run: gradle --stop
linting:
name: "Linting"
runs-on: "ubuntu-latest"
@ -25,6 +36,14 @@ jobs:
steps:
- name: "Checkout"
uses: "https://git.euph.dev/actions/checkout@v3"
- uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: "Prepare Gradle"
run: gradle clean
- name: "Generate OAS Boilerplate"
@ -33,6 +52,9 @@ jobs:
run: gradle checkstyleMain
- name: "Linting Test"
run: gradle checkstyleTest
- name: "Stop Gradle"
run: gradle --stop
static:
name: "Static Analysis"
runs-on: "ubuntu-latest"
@ -41,6 +63,14 @@ jobs:
steps:
- name: "Checkout"
uses: "https://git.euph.dev/actions/checkout@v3"
- uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: "Prepare Gradle"
run: gradle clean
- name: "Generate OAS Boilerplate"
@ -49,6 +79,9 @@ jobs:
run: gradle spotbugsMain
- name: "Static Analysis Test"
run: gradle spotbugsTest
- name: "Stop Gradle"
run: gradle --stop
test:
name: "Testing"
runs-on: "ubuntu-latest"
@ -57,9 +90,19 @@ jobs:
steps:
- name: "Checkout"
uses: "https://git.euph.dev/actions/checkout@v3"
- uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: "Prepare Gradle"
run: gradle clean
- name: "Generate OAS Boilerplate"
run: gradle generateSwaggerCode
- name: "Run Tests"
run: gradle test
run: gradle test
- name: "Stop Gradle"
run: gradle --stop