Skip to content

Commit c7f5b3a

Browse files
fix tests.yaml
1 parent dcad702 commit c7f5b3a

File tree

1 file changed

+34
-14
lines changed

1 file changed

+34
-14
lines changed

.github/workflows/tests.yaml

Lines changed: 34 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,17 @@ jobs:
2323
OS: ${{ matrix.os }}-latest
2424
runs-on: ${{ matrix.os }}-latest
2525
steps:
26+
- name: Checkout PR
27+
uses: actions/checkout@v3
28+
if: github.event.pull_request.head.sha != ''
29+
with:
30+
submodules: true
31+
ref: ${{ github.event.pull_request.head.sha }}
32+
- name: Checkout
33+
uses: actions/checkout@v3
34+
if: github.event.pull_request.head.sha == ''
35+
with:
36+
submodules: true
2637
- name: Install dependencies
2738
uses: ./.github/actions/prepare_vm
2839
- name: Prepare ccache timestamp
@@ -40,18 +51,18 @@ jobs:
4051
ubuntu-22.04-ccache-
4152
- name: Build
4253
uses: ./.github/actions/build
43-
- name: Checkout code
44-
uses: actions/checkout@v4
45-
- name: Run tests
46-
run: ctest -j32 --preset release-unit
47-
- name: Upload unit-tests coverage report to Codecov
48-
uses: codecov/codecov-action@v4
49-
with:
50-
file: ./unit.txt
51-
flags: unit,${{ matrix.os }},go-${{ matrix.go-version }}
52-
name: unit
53-
env:
54-
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
54+
- name: Test
55+
shell: bash
56+
- name: Run tests
57+
run: ctest -j32 --preset release-unit
58+
- name: Upload unit-tests coverage report to Codecov
59+
uses: codecov/codecov-action@v4
60+
with:
61+
file: ./unit.txt
62+
flags: unit,${{ matrix.os }},go-${{ matrix.go-version }}
63+
name: unit
64+
env:
65+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
5566

5667
integration:
5768
concurrency:
@@ -85,6 +96,17 @@ jobs:
8596
YDB_SESSIONS_SHUTDOWN_URLS: http://localhost:8765/actors/kqp_proxy?force_shutdown=all
8697
HIDE_APPLICATION_OUTPUT: 1
8798
steps:
99+
- name: Checkout PR
100+
uses: actions/checkout@v3
101+
if: github.event.pull_request.head.sha != ''
102+
with:
103+
submodules: true
104+
ref: ${{ github.event.pull_request.head.sha }}
105+
- name: Checkout
106+
uses: actions/checkout@v3
107+
if: github.event.pull_request.head.sha == ''
108+
with:
109+
submodules: true
88110
- name: Install dependencies
89111
uses: ./.github/actions/prepare_vm
90112
- name: Prepare ccache timestamp
@@ -102,8 +124,6 @@ jobs:
102124
ubuntu-22.04-ccache-
103125
- name: Build
104126
uses: ./.github/actions/build
105-
- name: Checkout code
106-
uses: actions/checkout@v4
107127
- name: Run tests
108128
run: ctest -j32 --preset release-integration
109129
- name: Upload integration-tests coverage report to Codecov

0 commit comments

Comments
 (0)