From 0ad2cc309c0d738efd2daa7cf526bcba15617bc5 Mon Sep 17 00:00:00 2001 From: mulla028 Date: Wed, 13 Nov 2024 15:23:08 -0500 Subject: [PATCH] workflow updated --- .github/workflows/checkstyle.yml | 22 ---------------------- .github/workflows/maven.yml | 30 ++++++++++++++++++++++++++++++ .github/workflows/spotless.yml | 22 ---------------------- 3 files changed, 30 insertions(+), 44 deletions(-) delete mode 100644 .github/workflows/checkstyle.yml delete mode 100644 .github/workflows/spotless.yml diff --git a/.github/workflows/checkstyle.yml b/.github/workflows/checkstyle.yml deleted file mode 100644 index 72dc8df..0000000 --- a/.github/workflows/checkstyle.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: Checkstyle Check - -on: - pull_request: - branches: - - main - -jobs: - checkstyle: - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v2 - - - name: Set up JDK - uses: actions/setup-java@v2 - with: - distribution: 'temurin' - java-version: '22' - - - name: Install dependencies and run Checkstyle - run: mvn checkstyle:check diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 003b6cc..e777db5 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -33,3 +33,33 @@ jobs: - name: Build with Maven run: mvn -B package --file pom.xml + checkstyle: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up JDK + uses: actions/setup-java@v2 + with: + distribution: 'temurin' + java-version: '22' + + - name: Install dependencies and run Checkstyle + run: mvn checkstyle:check + + spotless-check: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up JDK + uses: actions/setup-java@v2 + with: + distribution: 'temurin' + java-version: '22' + + - name: Install dependencies and run Spotless check + run: mvn spotless:check + diff --git a/.github/workflows/spotless.yml b/.github/workflows/spotless.yml deleted file mode 100644 index 3ce5771..0000000 --- a/.github/workflows/spotless.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: Spotless Check - -on: - pull_request: - branches: - - main - -jobs: - spotless-check: - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v2 - - - name: Set up JDK - uses: actions/setup-java@v2 - with: - distribution: 'temurin' - java-version: '22' - - - name: Install dependencies and run Spotless check - run: mvn spotless:check