-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Skip unsafe tests on GitHhub Action's macOS 14 runners
- Loading branch information
Showing
13 changed files
with
84 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// SPDX-FileCopyrightText: 2022-2024 Paul Colby <[email protected]> | ||
// SPDX-License-Identifier: LGPL-3.0-or-later | ||
|
||
#ifndef DOKIT_TESTS_GITHUB_H | ||
#define DOKIT_TESTS_GITHUB_H | ||
|
||
#include <QOperatingSystemVersion> | ||
|
||
/*! | ||
* Returns \c true if the application is executing on a GitHub Actions runner, \c false otherwise. | ||
*/ | ||
inline bool isGitHubActionsRunner() | ||
{ | ||
return qgetenv("GITHUB_ACTIONS") == "true"; | ||
} | ||
|
||
/*! | ||
* Returns the host operating system's version information if executing on a GitHub Actions runners, otherwise | ||
* a QOperatingSystemVersion::Unknown version. | ||
*/ | ||
inline QOperatingSystemVersion gitHubActionsRunnerOsVersion() | ||
{ | ||
return isGitHubActionsRunner() ? QOperatingSystemVersion::current() | ||
: QOperatingSystemVersion(QOperatingSystemVersion::Unknown, -1); | ||
} | ||
|
||
#endif // DOKIT_TESTS_GITHUB_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters