forked from manticoresoftware/manticoresearch
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (37 loc) · 1.5 KB
/
coverage.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: 📊 Code coverage test
run-name: 📊 Code coverage test ${{ github.sha }}
on:
workflow_run:
workflows: [ 🔬 Test ]
types: [ completed ]
# cancels the previous workflow run when a new one appears in the same branch (e.g. master or a PR's branch)
concurrency:
group: coverage_${{ github.ref }}
cancel-in-progress: true
jobs:
commit_info:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
name: Commit info
runs-on: ubuntu-22.04
steps:
- run: |
echo "# Coverage tests of commit ${{ github.sha }}" >> $GITHUB_STEP_SUMMARY
echo "* Commit URL: [${{ github.sha }}](/${{ github.repository }}/commit/${{ github.sha }})" >> $GITHUB_STEP_SUMMARY
echo "* Initiated by: [@${{ github.actor }}](https://github.com/${{ github.actor }})" >> $GITHUB_STEP_SUMMARY
echo "* Ref: ${{ github.ref_type }} \"${{ github.ref_name }}\"" >> $GITHUB_STEP_SUMMARY
echo "* Attempt: ${{ github.run_attempt }}" >> $GITHUB_STEP_SUMMARY
simple_build:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
uses: ./.github/workflows/build_template.yml
with:
CTEST_CMAKE_GENERATOR: "Unix Makefiles" # as Ninja fails with coverage
CTEST_CONFIGURATION_TYPE: "Debug"
WITH_COVERAGE: 1
simple_test_coverage:
needs: simple_build
uses: ./.github/workflows/test_template.yml
with:
WITH_COVERAGE: 1
artifact_name: test_debug_coverage
build_artifact_name: build_jammy_Debug_x86_64
timeout: 20