From 06e84bc6b48c9fcfecf1df4a8c9d0b8692ebefd0 Mon Sep 17 00:00:00 2001 From: keizer619 Date: Tue, 26 Nov 2024 11:35:19 +0530 Subject: [PATCH] Include scan flag in workflows --- .github/workflows/build-master.yml | 2 +- .github/workflows/publish-release.yml | 2 +- .github/workflows/pull-request.yml | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build-master.yml b/.github/workflows/build-master.yml index c973258c..36b21a27 100644 --- a/.github/workflows/build-master.yml +++ b/.github/workflows/build-master.yml @@ -22,6 +22,6 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.PUBLISH_PAT }} run: | - ./gradlew build jacocoTestReport + ./gradlew build jacocoTestReport --scan - name: Generate Codecov Report uses: codecov/codecov-action@v1 diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index fb3ea2db..dbde8f1d 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -35,7 +35,7 @@ jobs: packageUser: ${{ secrets.BALLERINA_BOT_USERNAME }} packagePAT: ${{ secrets.BALLERINA_BOT_TOKEN }} run: | - ./gradlew release -Prelease.useAutomaticVersion=true + ./gradlew release -Prelease.useAutomaticVersion=true --scan - name: Create release id: create_release uses: actions/create-release@v1 diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index f9ff1d18..f0d94f09 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -14,7 +14,7 @@ jobs: - name: Grant execute permission for gradlew run: chmod +x gradlew - name: Build with Gradle - run: ./gradlew clean build jacocoTestReport --info --stacktrace -x test + run: ./gradlew clean build jacocoTestReport --info --stacktrace -x test --scan env: TEST_MODE_ACTIVE: true - name: Generate Codecov Report @@ -31,7 +31,7 @@ jobs: - name: Grant execute permission for gradlew run: chmod +x gradlew - name: Build with Gradle - run: ./gradlew clean build jacocoTestReport --info --stacktrace -x test + run: ./gradlew clean build jacocoTestReport --info --stacktrace -x test --scan env: TEST_MODE_ACTIVE: true @@ -46,6 +46,6 @@ jobs: - name: Grant execute permission for gradlew run: chmod +x gradlew - name: Build with Gradle - run: ./gradlew clean build jacocoTestReport --info --stacktrace -x test + run: ./gradlew clean build jacocoTestReport --info --stacktrace -x test --scan env: TEST_MODE_ACTIVE: true