PMT-3: Update CI with caching for Dependencies
This commit is contained in:
parent
067e146a9b
commit
45d6b51967
1 changed files with 44 additions and 1 deletions
|
@ -13,10 +13,21 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: "Checkout"
|
- name: "Checkout"
|
||||||
uses: "https://git.euph.dev/actions/checkout@v3"
|
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"
|
- name: "Prepare Gradle"
|
||||||
run: gradle clean
|
run: gradle clean
|
||||||
- name: "Validate OAS Spec"
|
- name: "Validate OAS Spec"
|
||||||
run: gradle validateSwagger
|
run: gradle validateSwagger
|
||||||
|
- name: "Stop Gradle"
|
||||||
|
run: gradle --stop
|
||||||
|
|
||||||
linting:
|
linting:
|
||||||
name: "Linting"
|
name: "Linting"
|
||||||
runs-on: "ubuntu-latest"
|
runs-on: "ubuntu-latest"
|
||||||
|
@ -25,6 +36,14 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: "Checkout"
|
- name: "Checkout"
|
||||||
uses: "https://git.euph.dev/actions/checkout@v3"
|
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"
|
- name: "Prepare Gradle"
|
||||||
run: gradle clean
|
run: gradle clean
|
||||||
- name: "Generate OAS Boilerplate"
|
- name: "Generate OAS Boilerplate"
|
||||||
|
@ -33,6 +52,9 @@ jobs:
|
||||||
run: gradle checkstyleMain
|
run: gradle checkstyleMain
|
||||||
- name: "Linting Test"
|
- name: "Linting Test"
|
||||||
run: gradle checkstyleTest
|
run: gradle checkstyleTest
|
||||||
|
- name: "Stop Gradle"
|
||||||
|
run: gradle --stop
|
||||||
|
|
||||||
static:
|
static:
|
||||||
name: "Static Analysis"
|
name: "Static Analysis"
|
||||||
runs-on: "ubuntu-latest"
|
runs-on: "ubuntu-latest"
|
||||||
|
@ -41,6 +63,14 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: "Checkout"
|
- name: "Checkout"
|
||||||
uses: "https://git.euph.dev/actions/checkout@v3"
|
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"
|
- name: "Prepare Gradle"
|
||||||
run: gradle clean
|
run: gradle clean
|
||||||
- name: "Generate OAS Boilerplate"
|
- name: "Generate OAS Boilerplate"
|
||||||
|
@ -49,6 +79,9 @@ jobs:
|
||||||
run: gradle spotbugsMain
|
run: gradle spotbugsMain
|
||||||
- name: "Static Analysis Test"
|
- name: "Static Analysis Test"
|
||||||
run: gradle spotbugsTest
|
run: gradle spotbugsTest
|
||||||
|
- name: "Stop Gradle"
|
||||||
|
run: gradle --stop
|
||||||
|
|
||||||
test:
|
test:
|
||||||
name: "Testing"
|
name: "Testing"
|
||||||
runs-on: "ubuntu-latest"
|
runs-on: "ubuntu-latest"
|
||||||
|
@ -57,9 +90,19 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: "Checkout"
|
- name: "Checkout"
|
||||||
uses: "https://git.euph.dev/actions/checkout@v3"
|
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"
|
- name: "Prepare Gradle"
|
||||||
run: gradle clean
|
run: gradle clean
|
||||||
- name: "Generate OAS Boilerplate"
|
- name: "Generate OAS Boilerplate"
|
||||||
run: gradle generateSwaggerCode
|
run: gradle generateSwaggerCode
|
||||||
- name: "Run Tests"
|
- name: "Run Tests"
|
||||||
run: gradle test
|
run: gradle test
|
||||||
|
- name: "Stop Gradle"
|
||||||
|
run: gradle --stop
|
Loading…
Reference in a new issue