From dc852a9766ad09c7804d1adc7ddaac837d343b4b Mon Sep 17 00:00:00 2001 From: Puneet Behl Date: Sat, 16 Mar 2024 03:08:41 +0530 Subject: [PATCH] refactor(ci): Adjust build process execution in the Snapshot Workflow (#300) - Exclude 'test' step from 'build' job - Execute build for both push and pull request scenarios - Additionally, include 'Verify CLI' step for pull requests --- .github/workflows/snapshot.yml | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/.github/workflows/snapshot.yml b/.github/workflows/snapshot.yml index fe957ea6..1ded9569 100644 --- a/.github/workflows/snapshot.yml +++ b/.github/workflows/snapshot.yml @@ -20,18 +20,7 @@ jobs: with: distribution: 'adopt' java-version: ${{ matrix.java }} - - name: Run Tests - if: github.event_name == 'pull_request' - id: tests - uses: gradle/gradle-build-action@v2 - env: - GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }} - GRADLE_ENTERPRISE_BUILD_CACHE_NODE_USER: ${{ secrets.GRADLE_ENTERPRISE_BUILD_CACHE_NODE_USER }} - GRADLE_ENTERPRISE_BUILD_CACHE_NODE_KEY: ${{ secrets.GRADLE_ENTERPRISE_BUILD_CACHE_NODE_KEY }} - with: - arguments: check - name: Run Build - if: github.event_name == 'push' id: build uses: gradle/gradle-build-action@v2 env: @@ -41,7 +30,7 @@ jobs: with: arguments: build - name: Verify CLI - if: steps.build.outcome == 'success' && github.event_name == 'push' + if: success() run: | cp grails-cli/build/distributions/grails-cli-*.zip cli.zip unzip cli -d tmp