Added new documentation on FLOW #49
This file contains hidden or 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
| name: Pull Request | |
| on: | |
| push: | |
| branches: [ master ] | |
| pull_request: | |
| branches: [ master ] | |
| types: [opened, synchronize, reopened] | |
| jobs: | |
| # Style checks | |
| style: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - run: sudo apt install clang-format-7 | |
| - uses: actions/checkout@v2 | |
| - uses: actions/setup-python@v2 | |
| - uses: pre-commit/action@v2.0.0 | |
| # Build/run unit tests with cmake | |
| cmake: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v2 | |
| - name: Install cmake | |
| run: sudo apt-get install make cmake | |
| - name: Run Unit Tests | |
| run: mkdir build && cd build && cmake .. -DBUILD_TESTS=true && make && ctest | |
| # Build/run unit tests with bazel | |
| bazel: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v2 | |
| - name: Setup bazel | |
| uses: jwlawson/actions-setup-bazel@v1 | |
| with: | |
| bazel-version: '2.0.0' | |
| - name: Setup bazel cache | |
| uses: actions/cache@v2 | |
| with: | |
| path: "/home/runner/.cache/bazel" | |
| key: bazel | |
| - name: Run Unit Tests | |
| run: bazel test //test/... |