forked from probsys/hierarchical-irm
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Clang format and Continuous Integration
- Loading branch information
Showing
5 changed files
with
46 additions
and
56 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,22 @@ | ||
name: Clang Format | ||
on: | ||
push: | ||
pull_request: | ||
jobs: | ||
clang-format: | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
shell: bash | ||
timeout-minutes: 1 | ||
if: | | ||
contains(github.event.pull_request.body, 'FORCE_TEST_ACTIONS') | ||
steps: | ||
- name: Checking out repository | ||
uses: actions/checkout@v4 | ||
- name: Install dependencies | ||
run : | | ||
sudo apt-get update && sudo apt-get install -yq clang clang-format | ||
- name: Run clang-format # Use pipx to get version that apt doesn't have by default | ||
run: clang-format --dry-run -Werror --verbose \ | ||
$(git diff --name-only origin/main HEAD -- '*.cc' '*.hh' '*.hpp' |
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,23 @@ | ||
# This workflow will run tests. | ||
|
||
name: Tests | ||
on: | ||
push: | ||
pull_request: | ||
jobs: | ||
run_tests: | ||
name: Run tests | ||
runs-on: ubunut-latest | ||
timeout-minutes: 5 | ||
steps: | ||
- name: Checking out repository | ||
uses: actions/checkout@v4 | ||
- name: Install dependencies | ||
run : | | ||
sudo apt-get update && sudo apt-get install -yq clang clang-format | ||
- name: Build everything | ||
run: | | ||
bazel build //... | ||
- name: Test C++ | ||
run: | | ||
bazel test //... |
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.