feat: add quality check workflow for code validation
Some checks failed
Quality Check / Linting (push) Failing after 10s
Quality Check / Validate OAS (push) Failing after 13s
Quality Check / Static Analysis (push) Failing after 4s
Quality Check / Testing (push) Failing after 3s
Quality Check / Validate OAS (pull_request) Failing after 4s
Quality Check / Linting (pull_request) Failing after 4s
Quality Check / Static Analysis (pull_request) Failing after 5s
Quality Check / Testing (pull_request) Failing after 5s
Some checks failed
Quality Check / Linting (push) Failing after 10s
Quality Check / Validate OAS (push) Failing after 13s
Quality Check / Static Analysis (push) Failing after 4s
Quality Check / Testing (push) Failing after 3s
Quality Check / Validate OAS (pull_request) Failing after 4s
Quality Check / Linting (pull_request) Failing after 4s
Quality Check / Static Analysis (pull_request) Failing after 5s
Quality Check / Testing (pull_request) Failing after 5s
This commit is contained in:
parent
a981c8a409
commit
8392806617
109
.gitea/workflows/sq.yml
Normal file
109
.gitea/workflows/sq.yml
Normal file
@ -0,0 +1,109 @@
|
||||
name: "Quality Check"
|
||||
|
||||
on:
|
||||
- push
|
||||
- pull_request
|
||||
|
||||
jobs:
|
||||
oas:
|
||||
name: "Validate OAS"
|
||||
runs-on: "ubuntu-latest"
|
||||
container:
|
||||
image: "openjdk:21-jdk"
|
||||
steps:
|
||||
- name: "Checkout"
|
||||
uses: 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"
|
||||
container:
|
||||
image: "openjdk:21-jdk"
|
||||
steps:
|
||||
- name: "Checkout"
|
||||
uses: 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: "Linting Main"
|
||||
run: gradle checkstyleMain
|
||||
- name: "Linting Test"
|
||||
run: gradle checkstyleTest
|
||||
- name: "Stop Gradle"
|
||||
run: gradle --stop
|
||||
|
||||
static:
|
||||
name: "Static Analysis"
|
||||
runs-on: "ubuntu-latest"
|
||||
container:
|
||||
image: "openjdk:21-jdk"
|
||||
steps:
|
||||
- name: "Checkout"
|
||||
uses: 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: "Static Analysis Main"
|
||||
run: gradle spotbugsMain
|
||||
- name: "Static Analysis Test"
|
||||
run: gradle spotbugsTest
|
||||
- name: "Stop Gradle"
|
||||
run: gradle --stop
|
||||
|
||||
test:
|
||||
name: "Testing"
|
||||
runs-on: "ubuntu-latest"
|
||||
container:
|
||||
image: "openjdk:21-jdk"
|
||||
steps:
|
||||
- name: "Checkout"
|
||||
uses: 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
|
||||
- name: "Stop Gradle"
|
||||
run: gradle --stop
|
||||
|
Loading…
Reference in New Issue
Block a user