Add query #505
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: Format VOSTD Code | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| jobs: | |
| format-check: | |
| runs-on: ubuntu-24.04 | |
| env: | |
| CARGO_TERM_COLOR: always | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Install dependencies | |
| run: | | |
| sudo apt update -qq | |
| sudo apt install -y build-essential unzip pkg-config libssl-dev llvm | |
| - name: Run xtask bootstrap | |
| run: cargo xtask bootstrap | |
| - name: Run xtask fmt | |
| run: cargo xtask fmt | |
| - name: Check for formatting changes | |
| run: | | |
| if [[ -n $(git status --porcelain) ]]; then | |
| echo "Code is not properly formatted. Run 'cargo xtask fmt'." | |
| git diff | |
| exit 1 | |
| fi |