diff --git a/.github/workflows/build-application.yaml b/.github/workflows/build-application.yaml deleted file mode 100644 index 1a0c26e3..00000000 --- a/.github/workflows/build-application.yaml +++ /dev/null @@ -1,44 +0,0 @@ -## -# Copyright (C) 2024 Hedera Hashgraph, LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -## - -name: "Build Application" -on: - push - -defaults: - run: - shell: bash - -env: - GRADLE_EXEC: ./gradlew - -jobs: - compile: - name: "Compilation" - runs-on: [ self-hosted, Linux, medium, ephemeral ] - steps: - - name: Checkout Code - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 - - - name: Setup Java - uses: actions/setup-java@387ac29b308b003ca37ba93a6cab5eb57c8f5f93 # v4.0.0 - with: - distribution: "temurin" - java-version: "21.0.1" - - - name: Compile - id: gradle-build - run: ${GRADLE_EXEC} build diff --git a/.github/workflows/spotless-check.yml b/.github/workflows/spotless-check.yml deleted file mode 100644 index 16e392d1..00000000 --- a/.github/workflows/spotless-check.yml +++ /dev/null @@ -1,67 +0,0 @@ -## -# Copyright (C) 2024 Hedera Hashgraph, LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -## - -name: Spotless Check - -on: [pull_request] - -jobs: - spotless: - runs-on: ubuntu-latest - - steps: - - name: Harden Runner - uses: step-security/harden-runner@17d0e2bd7d51742c71671bd19fa12bdc9d40a3d6 # v2.8.1 - with: - egress-policy: audit - - - name: Checkout code - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - with: - fetch-depth: 0 - - - name: Expand Shallow Clone for Spotless - run: | - if [ -f .git/shallow ]; then - git fetch --unshallow --no-recurse-submodules - else - echo "Repository is not shallow, no need to unshallow." - fi - - - name: Set up JDK 21 - uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4.2.1 - with: - distribution: 'temurin' - java-version: '21' - - - name: Cache Gradle packages - uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2 - with: - path: | - ~/.gradle/caches - ~/.gradle/wrapper - key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} - restore-keys: | - ${{ runner.os }}-gradle- - - - name: Run Spotless Check - run: | - ./gradlew spotlessCheck - if [ $? -ne 0 ]; then - echo "Spotless found formatting issues. Please run './gradlew spotlessApply' to fix them." - exit 1 - fi - continue-on-error: false