Run the tests in Docker only after the Docker image is built #52
Workflow file for this run
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
name: 🥥 Lint C++ | |
on: | |
workflow_dispatch: {} | |
push: | |
paths: | |
- "**.cpp" | |
- "**.h" | |
jobs: | |
lint-cxx: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Install clang-format | |
run: | | |
sudo apt-get update -y | |
sudo apt-get install -y clang-format libgraphviz-dev | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.x' | |
- name: C++ lint | |
run: | | |
python3 third_party/run-clang-format/run-clang-format.py \ | |
polytracker/include/polytracker/*.h \ | |
polytracker/include/polytracker/passes/*.h \ | |
polytracker/include/taintdag/*.h \ | |
polytracker/src/passes/*.cpp \ | |
polytracker/src/polytracker/*.cpp \ | |
polytracker/src/taint_sources/*.cpp \ | |
polytracker/src/taintdag/*.cpp |