adding example 'webserver reverse proxy' #654
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: C++ | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
permissions: | |
contents: read | |
jobs: | |
format: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install dos2unix | |
run: sudo apt-get install -y dos2unix | |
- name: Install clang-format-17 | |
run: | | |
wget https://apt.llvm.org/llvm.sh | |
chmod +x ./llvm.sh | |
sudo ./llvm.sh 17 | |
sudo apt-get install -y clang-format-17 | |
- name: Check formatting | |
run: ./format.sh && git diff --exit-code | |
env: | |
CLANG_FORMAT: clang-format-17 | |
cpplint: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install cpplint | |
run: pip install cpplint | |
- name: Run lint | |
run: cpplint --recursive . |