Add comprehensive code review document for Reqvire #94
Workflow file for this run
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: Rust Tests on PR | |
| on: | |
| pull_request: | |
| branches: | |
| - main # Change this to match your default branch | |
| jobs: | |
| test: | |
| name: Run Rust Tests | |
| runs-on: ubuntu-latest # Runs on an Ubuntu machine | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Rust | |
| uses: dtolnay/rust-toolchain@stable | |
| - name: Cache Cargo dependencies | |
| uses: Swatinem/rust-cache@v2 | |
| - name: Run Tests | |
| run: cargo test --verbose | |
| validate: | |
| name: Validate Requirements | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v4 | |
| - name: Install Reqvire | |
| run: curl -fsSL https://raw.githubusercontent.com/ilijaljubicic/Reqvire/main/scripts/install.sh | bash | |
| - name: Validate Requirements via validate command | |
| id: validate | |
| continue-on-error: true | |
| run: | | |
| mkdir -p reports | |
| reqvire validate | tee reports/validation_report.txt | |
| - name: Upload Validation Report if validation failed | |
| if: failure() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: reqvire-validation-report | |
| path: reports/validation_report.txt |