From c7f5b3aec7a96bb7c4a5888557cfb4bee66d8ff1 Mon Sep 17 00:00:00 2001 From: st-shchetinin Date: Tue, 23 Jul 2024 18:55:49 +0300 Subject: [PATCH] fix tests.yaml --- .github/workflows/tests.yaml | 48 +++++++++++++++++++++++++----------- 1 file changed, 34 insertions(+), 14 deletions(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index a024276a36..af82c50c75 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -23,6 +23,17 @@ jobs: OS: ${{ matrix.os }}-latest runs-on: ${{ matrix.os }}-latest steps: + - name: Checkout PR + uses: actions/checkout@v3 + if: github.event.pull_request.head.sha != '' + with: + submodules: true + ref: ${{ github.event.pull_request.head.sha }} + - name: Checkout + uses: actions/checkout@v3 + if: github.event.pull_request.head.sha == '' + with: + submodules: true - name: Install dependencies uses: ./.github/actions/prepare_vm - name: Prepare ccache timestamp @@ -40,18 +51,18 @@ jobs: ubuntu-22.04-ccache- - name: Build uses: ./.github/actions/build - - name: Checkout code - uses: actions/checkout@v4 - - name: Run tests - run: ctest -j32 --preset release-unit - - name: Upload unit-tests coverage report to Codecov - uses: codecov/codecov-action@v4 - with: - file: ./unit.txt - flags: unit,${{ matrix.os }},go-${{ matrix.go-version }} - name: unit - env: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} + - name: Test + shell: bash + - name: Run tests + run: ctest -j32 --preset release-unit + - name: Upload unit-tests coverage report to Codecov + uses: codecov/codecov-action@v4 + with: + file: ./unit.txt + flags: unit,${{ matrix.os }},go-${{ matrix.go-version }} + name: unit + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} integration: concurrency: @@ -85,6 +96,17 @@ jobs: YDB_SESSIONS_SHUTDOWN_URLS: http://localhost:8765/actors/kqp_proxy?force_shutdown=all HIDE_APPLICATION_OUTPUT: 1 steps: + - name: Checkout PR + uses: actions/checkout@v3 + if: github.event.pull_request.head.sha != '' + with: + submodules: true + ref: ${{ github.event.pull_request.head.sha }} + - name: Checkout + uses: actions/checkout@v3 + if: github.event.pull_request.head.sha == '' + with: + submodules: true - name: Install dependencies uses: ./.github/actions/prepare_vm - name: Prepare ccache timestamp @@ -102,8 +124,6 @@ jobs: ubuntu-22.04-ccache- - name: Build uses: ./.github/actions/build - - name: Checkout code - uses: actions/checkout@v4 - name: Run tests run: ctest -j32 --preset release-integration - name: Upload integration-tests coverage report to Codecov