ProjectManagmentTool/.forgejo/workflows/qs.yml
Dominik Säume 7a69612b2a
Some checks failed
Quality Check / Testing (push) Failing after 1m25s
Quality Check / Static Analysis (push) Failing after 1m34s
Quality Check / Linting (push) Failing after 38s
Quality Check / Validate OAS (push) Failing after 33s
PMT-3: Update CI with caching for Dependencies
2024-09-19 22:01:12 +02:00

97 lines
No EOL
2.9 KiB
YAML

name: "Quality Check"
on:
- push
- pull_request
jobs:
oas:
name: "Validate OAS"
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"
- 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
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"
- 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
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"
- 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
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"
- 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