APS Auth Tokens #834
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: Format Validation (Clang) | |
on: | |
workflow_dispatch: {} | |
push: | |
branches: [ master, dev ] | |
pull_request: | |
branches: [ master, dev ] | |
jobs: | |
runFormatValidationScript: | |
name: Run Clang Format Validation Script | |
runs-on: ubuntu-latest | |
steps: | |
- name: Get Clang Format 16 | |
run: | | |
sudo wget -qO- https://apt.llvm.org/llvm-snapshot.gpg.key | sudo tee /etc/apt/trusted.gpg.d/apt.llvm.org.asc | |
sudo add-apt-repository "deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-16 main" | |
sudo apt-get update | |
sudo apt-get install -y clang-format-16 | |
- name: Checkout Code | |
uses: actions/checkout@v2 | |
- name: Python Setup | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.9' | |
- name: Run Script | |
run: python3 scripts/format/format_validation.py | |
id: format-validation | |
continue-on-error: true | |
- name: Check Success | |
run: | | |
if [ ${{ steps.format-validation.outcome }} == "success" ]; then | |
echo "Format Validation Passed" | |
else | |
echo "Format Validation Failed" | |
exit 1 | |
fi |