Skip to content

Commit 80de0d9

Browse files
committed
Run test before build flow
1 parent 122d59e commit 80de0d9

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

.github/workflows/docker-publish.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,33 @@ env:
2121

2222

2323
jobs:
24+
test:
25+
runs-on: ubuntu-latest
26+
container: gcc:15
27+
28+
steps:
29+
- name: Install build dependencies
30+
run: |
31+
apt-get update -y
32+
apt-get install git cmake libboost-dev libicu-dev libpq-dev -y --no-install-recommends
33+
34+
- name: Checkout repository
35+
uses: actions/checkout@v6
36+
with:
37+
submodules: 'recursive'
38+
39+
- name: Configure CMake
40+
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_TESTS=ON
41+
42+
- name: Build
43+
run: cmake --build build --config RelWithDebInfo --parallel $(nproc)
44+
45+
- name: Run tests
46+
run: ctest --test-dir build --build-config RelWithDebInfo --output-on-failure --parallel $(nproc)
47+
2448
build:
2549
runs-on: ubuntu-latest
50+
needs: test
2651
permissions:
2752
contents: read
2853
packages: write

0 commit comments

Comments
 (0)