Skip to content

Commit e0cffa3

Browse files
authored
Merge pull request #227 from seqan/dependabot/github_actions/actions/checkout-6
Bump actions/checkout from 5 to 6
2 parents af4c02f + 3d2bf48 commit e0cffa3

File tree

11 files changed

+23
-12
lines changed

11 files changed

+23
-12
lines changed

.github/workflows/ci_coverage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
image: ghcr.io/seqan/${{ matrix.compiler }}
4040
steps:
4141
- name: Checkout
42-
uses: actions/checkout@v5
42+
uses: actions/checkout@v6
4343
with:
4444
fetch-depth: 0
4545

.github/workflows/ci_documentation.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@ jobs:
3535
steps:
3636
- name: Checkout
3737
if: github.event_name != 'pull_request_target'
38-
uses: actions/checkout@v5
38+
uses: actions/checkout@v6
3939

4040
# pull_request_target does not checkout the merge commit by default
4141
- name: Checkout
4242
if: github.event_name == 'pull_request_target'
43-
uses: actions/checkout@v5
43+
uses: actions/checkout@v6
4444
with:
4545
ref: "refs/pull/${{ github.event.number }}/merge"
4646

.github/workflows/ci_install.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
options: --privileged
4141
steps:
4242
- name: Checkout
43-
uses: actions/checkout@v5
43+
uses: actions/checkout@v6
4444
with:
4545
path: needle
4646

.github/workflows/ci_license.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
if: github.repository_owner == 'seqan' || github.event_name == 'workflow_dispatch' || github.event.label.name == 'lint'
2929
steps:
3030
- name: Checkout
31-
uses: actions/checkout@v5
31+
uses: actions/checkout@v6
3232

3333
- name: REUSE Compliance Check
3434
uses: fsfe/reuse-action@v6

.github/workflows/ci_linux.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
fi
5050
5151
- name: Checkout
52-
uses: actions/checkout@v5
52+
uses: actions/checkout@v6
5353

5454
- name: Setup cache
5555
uses: seqan/actions/setup-actions-cache@main

.github/workflows/ci_macos.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
compiler: ["clang-latest", "clang-second-latest", "clang-third-latest", "gcc-latest", "gcc-second-latest", "gcc-third-latest"]
3838
steps:
3939
- name: Checkout
40-
uses: actions/checkout@v5
40+
uses: actions/checkout@v6
4141

4242
- name: Setup toolchain
4343
uses: seqan/actions/setup-toolchain@main

.github/workflows/cron_codeql.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
image: ghcr.io/seqan/gcc-second-latest
3333
steps:
3434
- name: Checkout
35-
uses: actions/checkout@v5
35+
uses: actions/checkout@v6
3636

3737
- name: Initialize CodeQL
3838
uses: github/codeql-action/init@v4

.github/workflows/cron_sanitizer.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ jobs:
7474
image: ${{ matrix.image || '' }}
7575
steps:
7676
- name: Checkout
77-
uses: actions/checkout@v5
77+
uses: actions/checkout@v6
7878

7979
- name: Setup compiler
8080
if: contains(matrix.os, 'macos')

cmake/test/config.cmake

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
# SPDX-License-Identifier: CC0-1.0
44

55
include (test/coverage)
6+
include (CMakeDependentOption)
67

78
CPMGetPackage (googletest)
89

@@ -25,6 +26,9 @@ else ()
2526
endif ()
2627
add_definitions (-DBINDIR=\"${NEEDLE_TEST_BINARY_DIR}/\")
2728

29+
option (NEEDLE_DO_NOT_KEEP_TEST_OUTPUT "Delete test output." OFF)
30+
cmake_dependent_option (NEEDLE_DO_NOT_KEEP_TEST_OUTPUT_CI "Delete test output." ON "DEFINED ENV{CI}" OFF)
31+
2832
# Add the test interface library.
2933
if (NOT TARGET ${PROJECT_NAME}_test)
3034
add_library (${PROJECT_NAME}_test INTERFACE)
@@ -42,6 +46,11 @@ if (NOT TARGET ${PROJECT_NAME}_test)
4246
endif ()
4347
endif ()
4448

49+
if (NEEDLE_DO_NOT_KEEP_TEST_OUTPUT OR NEEDLE_DO_NOT_KEEP_TEST_OUTPUT_CI)
50+
message (STATUS "Deleting test output.")
51+
target_compile_definitions (${PROJECT_NAME}_test INTERFACE "NEEDLE_DO_NOT_KEEP_TEST_OUTPUT")
52+
endif ()
53+
4554
target_link_libraries (${PROJECT_NAME}_test INTERFACE "${PROJECT_NAME}_lib" "GTest::gtest_main")
4655

4756
# !Workaround: Get seqan3 test include dir from seqan3 target

test/app_test.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,9 @@ struct app_test : public ::testing::Test
114114
{
115115
try
116116
{
117+
#ifdef NEEDLE_DO_NOT_KEEP_TEST_OUTPUT
118+
std::filesystem::remove_all(current_workdir);
119+
#endif
117120
std::filesystem::current_path(original_workdir); // restore the original work dir
118121
}
119122
catch (std::exception const & exc)

0 commit comments

Comments
 (0)