From 249ecc343cbf5f688392fafb34255d68d6b65620 Mon Sep 17 00:00:00 2001 From: Fabrice Lecomte Date: Fri, 11 Apr 2025 00:19:58 +0200 Subject: [PATCH] Revert "ci: add scan to github action" This reverts commit 25d2aed54f9b32467f0cf1842294d7deb50bceb6. --- .github/workflows/tests.yml | 35 ++++++++++++++--------------------- 1 file changed, 14 insertions(+), 21 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 8ceba5b..b83a76a 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -29,17 +29,13 @@ jobs: restore-keys: | ${{ runner.os }}-gradle- - - name: Build (without tests & lint) - run: ./gradlew build --scan -x test -x ktlintKotlinScriptCheck -x ktlintTestSourceSetCheck -x ktlintMainSourceSetCheck | tee build.log - - - name: Show Build Scan URL - run: grep -Eo 'https://scans.gradle.com/s/[a-zA-Z0-9]+' build.log + - name: Build + uses: gradle/gradle-build-action@v2 + with: + arguments: build -x test -x ktlintKotlinScriptCheck -x ktlintTestSourceSetCheck -x ktlintMainSourceSetCheck - name: processResources - run: ./gradlew processResources --scan | tee resources.log - - - name: Show Resource Scan URL - run: grep -Eo 'https://scans.gradle.com/s/[a-zA-Z0-9]+' resources.log + run: ./gradlew processResources - name: Upload build artifacts uses: actions/upload-artifact@v4 @@ -67,16 +63,14 @@ jobs: path: build/ - name: Compose Up - run: ./gradlew composeUp --scan | tee compose.log - - - name: Show Compose Scan URL - run: grep -Eo 'https://scans.gradle.com/s/[a-zA-Z0-9]+' compose.log + uses: gradle/gradle-build-action@v2 + with: + arguments: composeUp - name: Run tests - run: ./gradlew test --scan | tee test.log - - - name: Show Test Scan URL - run: grep -Eo 'https://scans.gradle.com/s/[a-zA-Z0-9]+' test.log + uses: gradle/gradle-build-action@v2 + with: + arguments: test lint: needs: build @@ -98,7 +92,6 @@ jobs: path: build/ - name: Run linter - run: ./gradlew ktlintCheck --scan | tee lint.log - - - name: Show Lint Scan URL - run: grep -Eo 'https://scans.gradle.com/s/[a-zA-Z0-9]+' lint.log + uses: gradle/gradle-build-action@v2 + with: + arguments: ktlintCheck \ No newline at end of file