From 119cb692d00771eaa08012ff248ab9302c369130 Mon Sep 17 00:00:00 2001 From: Bodong Yang Date: Thu, 9 May 2024 06:30:40 +0000 Subject: [PATCH] test_ci: fetch all git histories --- .github/workflows/test.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index bcb1df2e0..294043c5b 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -25,15 +25,16 @@ jobs: steps: - name: Checkout commit uses: actions/checkout@v3 + # sonarcloud needs full git histories + with: + fetch-depth: 0 - name: Build ota-test_base docker image run: | docker compose -f docker/docker-compose_tests.yml build - name: Execute pytest with coverage trace under ota-test_base container run: | - set -o pipefail mkdir -p test_result docker compose -f docker/docker-compose_tests.yml up --abort-on-container-exit - - name: SonarCloud Scan uses: SonarSource/sonarcloud-github-action@master continue-on-error: true