-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds new GitHub action to run unit tests (#146)
- Loading branch information
1 parent
d25ed42
commit 78fbbf6
Showing
7 changed files
with
51 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: "Build/test (virtual)" | ||
on: [push] | ||
jobs: | ||
build-test: | ||
runs-on: ubuntu-20.04 | ||
defaults: | ||
run: | ||
shell: bash | ||
container: | ||
image: mcr.microsoft.com/ccf/app/dev:3.0.9-virtual | ||
env: | ||
# Helps to distinguish between CI and local builds. | ||
SCITT_CI: 1 | ||
# Additional CMake flags. | ||
PLATFORM: virtual | ||
CMAKE_BUILD_TYPE: Debug | ||
ENABLE_PREFIX_TREE: ON | ||
ENABLE_CLANG_TIDY: ON | ||
# These make CI print all the errors, rather than stopping early. | ||
CXXFLAGS: -ferror-limit=0 | ||
NINJA_FLAGS: -k 0 | ||
steps: | ||
- name: Checkout repository with tags | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
# Work-around for https://github.com/actions/runner/issues/2033 | ||
- name: Work around git safe.directory in container | ||
run: chown -R $(id -u):$(id -g) $PWD | ||
- run: apt-get update && apt-get install -y libcurl4-openssl-dev faketime clang-tidy-10 | ||
- run: ./scripts/ci-checks.sh | ||
- run: ./build.sh | ||
- run: ./run_unit_tests.sh | ||
- run: ./run_functional_tests.sh --enable-prefix-tree --enable-faketime |
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