1+ # *******************************************************************************
2+ # Copyright (c) 2025 Contributors to the Eclipse Foundation
3+ #
4+ # See the NOTICE file(s) distributed with this work for additional
5+ # information regarding copyright ownership.
6+ #
7+ # This program and the accompanying materials are made available under the
8+ # terms of the Apache License Version 2.0 which is available at
9+ # https://www.apache.org/licenses/LICENSE-2.0
10+ #
11+ # SPDX-License-Identifier: Apache-2.0
12+ # *******************************************************************************
13+
14+ name : Pawel Testing
15+
16+ permissions :
17+ contents : write
18+ pages : write
19+ pull-requests : write
20+ id-token : write
21+
22+ on :
23+ pull_request : # Allows forks to trigger the docs build
24+ types : [opened, reopened, synchronize]
25+
26+ jobs :
27+ test_and_docs :
28+ runs-on : ubuntu-22.04
29+ permissions :
30+ contents : write # required to upload release assets
31+ pull-requests : write
32+
33+ steps :
34+ - name : Clean disk space
35+ uses : eclipse-score/more-disk-space@v1
36+ - name : Install lcov
37+ run : |
38+ sudo apt-get update
39+ sudo apt-get install -y lcov
40+ sudo apt-get install -y tree
41+
42+ - name : Inspector1
43+ run : |
44+ pwd
45+ ls -la
46+
47+ - name : Inspect Bazel caches
48+ if : always()
49+ run : |
50+ for cache in ~/.cache/bazelisk ~/.cache/bazel-disk-cache ~/.cache/bazel-repo-cache; do
51+ echo "=== $cache ==="
52+ du -sh "$cache" 2>/dev/null && find "$cache" -maxdepth 2 | head -20 || echo "MISSING"
53+ done
54+
55+ ls -la /home/runner/.bazel/external || true
56+
57+
58+ - name : Setup Bazel
59+ uses : bazel-contrib/setup-bazel@0.18.0
60+ with :
61+ bazelisk-cache : true
62+ disk-cache : tracing-cache-do-not-use
63+ repository-cache : true
64+ cache-save : true
65+ external-cache : true
66+ - name : Inspect Bazel caches
67+ if : always()
68+ run : |
69+ echo $(pwd)
70+ for cache in ~/.cache/bazelisk ~/.cache/bazel-disk-cache ~/.cache/bazel-repo-cache; do
71+ echo "=== $cache ==="
72+ du -sh "$cache" 2>/dev/null && find "$cache" -maxdepth 2 | head -20 || echo "MISSING"
73+ done
74+
75+ ls -la /home/runner/.bazel/external || true
76+
77+ - name : Set up Python 3
78+ uses : actions/setup-python@v5
79+ with :
80+ python-version : ' 3.12'
81+
82+ - name : Checkout repository (pull_request_target via workflow_call)
83+ if : ${{ github.event_name == 'pull_request_target' }}
84+ uses : actions/checkout@v4
85+ with :
86+ ref : ${{ github.head_ref || github.event.pull_request.head.ref || github.ref }}
87+ repository : ${{ github.event.pull_request.head.repo.full_name || github.repository }}
88+
89+ - name : Checkout repository
90+ if : ${{ github.event_name != 'pull_request_target' }}
91+ uses : actions/checkout@v4
92+
93+ - name : Inspector3
94+ run : |
95+ ls -la
96+
97+ - name : Execute Unit Tests with Coverage Analysis
98+ run : |
99+ echo "BEFORE INGO"
100+ ls -la /home/runner/.bazel/external || true
101+ bazel info
102+ OUTPUT_BASE=$(bazel info output_base 2>/dev/null)
103+ echo "=== external ($OUTPUT_BASE/external) ==="
104+ # tree $OUTPUT_BASE/external
105+
106+ python ./scripts/quality_runners.py --modules-to-test score_logging
107+
108+ # echo "tree after run"
109+ tree $OUTPUT_BASE/external
110+
111+
112+
113+
114+
115+
0 commit comments