Merge pull request #857 from devgbmuyiwa/fix/383-rollback-verificatio… #180
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: Deployment Verification | |
| on: | |
| push: | |
| branches: [master, main] | |
| paths: | |
| - 'src/commands/deploy*.rs' | |
| - 'src/utils/deploy*.rs' | |
| - 'src/utils/deployment_verify.rs' | |
| pull_request: | |
| paths: | |
| - 'src/commands/deploy*.rs' | |
| - 'src/utils/deploy*.rs' | |
| - 'src/utils/deployment_verify.rs' | |
| jobs: | |
| deploy-verify: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Rust toolchain | |
| uses: dtolnay/rust-toolchain@stable | |
| - name: Install system dependencies | |
| run: sudo apt-get update && sudo apt-get install -y libudev-dev | |
| - name: Build starforge | |
| run: cargo build --locked | |
| - name: Run deployment verification tests | |
| # cargo accepts a single positional filter; libtest accepts several, | |
| # so the filters must go after `--`. | |
| run: | | |
| cargo test --locked --test deployment_verification -- --nocapture | |
| cargo test --locked --test network_simulation -- --nocapture | |
| cargo test --locked --test bridge_integration -- --nocapture | |
| cargo test --locked -- deployment_verify network_sim bridge --nocapture |