From a11b9dc4f363c30bb51920bdac4169cf66a77895 Mon Sep 17 00:00:00 2001 From: Jan Klattenhoff Date: Wed, 25 Sep 2024 09:36:33 +0200 Subject: [PATCH] ci: add new quality check workflow and remove old one --- .gitea/workflows/qs.yml | 28 +++++++++++ .gitea/workflows/sq.yml | 107 ---------------------------------------- 2 files changed, 28 insertions(+), 107 deletions(-) create mode 100644 .gitea/workflows/qs.yml delete mode 100644 .gitea/workflows/sq.yml diff --git a/.gitea/workflows/qs.yml b/.gitea/workflows/qs.yml new file mode 100644 index 0000000..43fcf81 --- /dev/null +++ b/.gitea/workflows/qs.yml @@ -0,0 +1,28 @@ +name: "Quality Check" + +on: + - pull_request + +jobs: + oas: + name: "Gradle Check" + runs-on: "ubuntu-latest" + container: + image: "cimg/openjdk:21.0-node" + 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: "Check" + run: gradle check + - name: "Stop Gradle" + run: gradle --stop \ No newline at end of file diff --git a/.gitea/workflows/sq.yml b/.gitea/workflows/sq.yml deleted file mode 100644 index 3845951..0000000 --- a/.gitea/workflows/sq.yml +++ /dev/null @@ -1,107 +0,0 @@ -name: "Quality Check" - -on: - - pull_request - -jobs: - oas: - name: "Validate OAS" - runs-on: "ubuntu-latest" - container: - image: "cimg/openjdk:21.0-node" - 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: "cimg/openjdk:21.0-node" - 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: "cimg/openjdk:21.0-node" - 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: "cimg/openjdk:21.0-node" - 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