PMT-3: Add Tests to Pipeline
This commit is contained in:
parent
dfb03a1eb1
commit
3a186ac69a
1 changed files with 43 additions and 3 deletions
|
@ -5,8 +5,8 @@ on:
|
||||||
- pull_request
|
- pull_request
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
linting:
|
oas:
|
||||||
name: "Linting Check"
|
name: "Validate OAS"
|
||||||
runs-on: "ubuntu-latest"
|
runs-on: "ubuntu-latest"
|
||||||
container:
|
container:
|
||||||
image: "git.euph.dev/actions/runner-java-21:latest"
|
image: "git.euph.dev/actions/runner-java-21:latest"
|
||||||
|
@ -15,11 +15,51 @@ jobs:
|
||||||
uses: "https://git.euph.dev/actions/checkout@v3"
|
uses: "https://git.euph.dev/actions/checkout@v3"
|
||||||
- name: "Prepare Gradle"
|
- name: "Prepare Gradle"
|
||||||
run: gradle clean
|
run: gradle clean
|
||||||
|
- name: "Validate OAS Spec"
|
||||||
|
run: gradle validateSwagger
|
||||||
|
linting:
|
||||||
|
name: "Linting"
|
||||||
|
runs-on: "ubuntu-latest"
|
||||||
|
container:
|
||||||
|
image: "git.euph.dev/actions/runner-java-21:latest"
|
||||||
|
steps:
|
||||||
|
- name: "Checkout"
|
||||||
|
uses: "https://git.euph.dev/actions/checkout@v3"
|
||||||
|
- name: "Prepare Gradle"
|
||||||
|
run: gradle clean
|
||||||
|
- name: "Generate OAS Boilerplate"
|
||||||
|
run: gradle generateSwaggerCode
|
||||||
- name: "Linting Main"
|
- name: "Linting Main"
|
||||||
run: gradle checkstyleMain
|
run: gradle checkstyleMain
|
||||||
- name: "Linting Test"
|
- name: "Linting Test"
|
||||||
run: gradle checkstyleTest
|
run: gradle checkstyleTest
|
||||||
|
static:
|
||||||
|
name: "Static Analysis"
|
||||||
|
runs-on: "ubuntu-latest"
|
||||||
|
container:
|
||||||
|
image: "git.euph.dev/actions/runner-java-21:latest"
|
||||||
|
steps:
|
||||||
|
- name: "Checkout"
|
||||||
|
uses: "https://git.euph.dev/actions/checkout@v3"
|
||||||
|
- name: "Prepare Gradle"
|
||||||
|
run: gradle clean
|
||||||
|
- name: "Generate OAS Boilerplate"
|
||||||
|
run: gradle generateSwaggerCode
|
||||||
- name: "Static Analysis Main"
|
- name: "Static Analysis Main"
|
||||||
run: gradle spotbugsMain
|
run: gradle spotbugsMain
|
||||||
- name: "Static Analysis Test"
|
- name: "Static Analysis Test"
|
||||||
run: gradle spotbugsTest
|
run: gradle spotbugsTest
|
||||||
|
test:
|
||||||
|
name: "Testing"
|
||||||
|
runs-on: "ubuntu-latest"
|
||||||
|
container:
|
||||||
|
image: "git.euph.dev/actions/runner-java-21:latest"
|
||||||
|
steps:
|
||||||
|
- name: "Checkout"
|
||||||
|
uses: "https://git.euph.dev/actions/checkout@v3"
|
||||||
|
- name: "Prepare Gradle"
|
||||||
|
run: gradle clean
|
||||||
|
- name: "Generate OAS Boilerplate"
|
||||||
|
run: gradle generateSwaggerCode
|
||||||
|
- name: "Run Tests"
|
||||||
|
run: gradle test
|
Loading…
Reference in a new issue